{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1642","repository_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1642/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1642/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1642/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/1642","id":193350769,"number":1642,"title":"starting http server before ","user":{"login":"AdrianDroid","id":6862208,"avatar_url":"https://avatars.githubusercontent.com/u/6862208?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianDroid","html_url":"https://github.com/AdrianDroid","followers_url":"https://api.github.com/users/AdrianDroid/followers","following_url":"https://api.github.com/users/AdrianDroid/following{/other_user}","gists_url":"https://api.github.com/users/AdrianDroid/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianDroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianDroid/subscriptions","organizations_url":"https://api.github.com/users/AdrianDroid/orgs","repos_url":"https://api.github.com/users/AdrianDroid/repos","events_url":"https://api.github.com/users/AdrianDroid/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianDroid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-04T13:25:50Z","updated_at":"2016-12-05T15:13:57Z","closed_at":null,"body":"8<------------------------ BUG REPORT -----------------------------------------\r\n### Expected behavior\r\nexpect the enduser_setup will work as usual.\r\n### Actual behavior\r\nenduser_setup failed to work.\r\nwifi mode stick to 1,\r\nmanual setting to 3, will result no page load in browser.\r\n\r\n### Test code\r\n```Lua\r\nsrv=net.createServer(net.TCP);\r\nsrv:listen(80,function () end);\r\nif (srv ~= nil ) then\r\n    srv:close();\r\n    srv=nil;\r\n    collectgarbage();\r\nend\r\nenduser_setup.start();\r\n```\r\n### NodeMCU version\r\n1.5.4.1\r\n\r\n### Hardware\r\nnode dev kit v3\r\n\r\n8<------------------------ END BUG REPORT -------------------------------------\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/264879576","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/1642#issuecomment-264879576","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1642","id":264879576,"user":{"login":"AdrianDroid","id":6862208,"avatar_url":"https://avatars.githubusercontent.com/u/6862208?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianDroid","html_url":"https://github.com/AdrianDroid","followers_url":"https://api.github.com/users/AdrianDroid/followers","following_url":"https://api.github.com/users/AdrianDroid/following{/other_user}","gists_url":"https://api.github.com/users/AdrianDroid/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianDroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianDroid/subscriptions","organizations_url":"https://api.github.com/users/AdrianDroid/orgs","repos_url":"https://api.github.com/users/AdrianDroid/repos","events_url":"https://api.github.com/users/AdrianDroid/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianDroid/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T15:13:57Z","updated_at":"2016-12-05T15:13:57Z","body":"interesting thing is adding timer in between failed too, isn't timing issue?\r\n\r\n```lua\r\n\r\nprint(\"http stop\");\r\nsrv=net.createServer(net.TCP);\r\nsrv:listen(80,function () \r\nend);\r\n\r\n--2sec later\r\ntmr.alarm(0,2000, tmr.ALARM_SINGLE ,function()\r\n    print(\"http stop\");\r\n    if (srv ~= nil ) then\r\n        srv:close();\r\n        srv=nil;\r\n        collectgarbage();\r\n    end\r\nend);\r\n\r\n--5sec later\r\ntmr.alarm(1,5000, tmr.ALARM_SINGLE ,function()\r\n    print(\"enduser_setup\");\r\n    enduser_setup.start();\r\nend);\r\n```\r\n\r\n"}}
{"actor":{"display_login":"AdrianDroid"}}