{"action":"closed","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1237","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1237/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1237/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1237/events","html_url":"https://github.com/micropython/micropython/issues/1237","id":73821851,"number":1237,"title":"esp8266: listen()/accept() broken?","user":{"login":"roger-","id":1389709,"avatar_url":"https://avatars.githubusercontent.com/u/1389709?v=3","gravatar_id":"","url":"https://api.github.com/users/roger-","html_url":"https://github.com/roger-","followers_url":"https://api.github.com/users/roger-/followers","following_url":"https://api.github.com/users/roger-/following{/other_user}","gists_url":"https://api.github.com/users/roger-/gists{/gist_id}","starred_url":"https://api.github.com/users/roger-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roger-/subscriptions","organizations_url":"https://api.github.com/users/roger-/orgs","repos_url":"https://api.github.com/users/roger-/repos","events_url":"https://api.github.com/users/roger-/events{/privacy}","received_events_url":"https://api.github.com/users/roger-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/micropython/micropython/labels/ports","name":"ports","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-07T03:22:20Z","updated_at":"2015-07-03T19:53:19Z","closed_at":"2015-07-03T19:53:19Z","body":"I'm testing the following server script:\r\n\r\n```python\r\nimport esp\r\n\r\nesp.connect('xxx', 'xxx')  \r\n \r\ns = esp.socket()\r\n  \r\ndef on_connect(sock):\r\n    print(s.accept()) \r\n     \r\ns.bind(('', 80))\r\ns.onconnect(on_connect)\r\ns.listen(5)\r\n```\r\n\r\nBut get a  `OSError: not listening` everytime I connect. Seems like something is broken?"}}