{"action":"created","issue":{"url":"https://api.github.com/repos/eventlet/eventlet/issues/366","repository_url":"https://api.github.com/repos/eventlet/eventlet","labels_url":"https://api.github.com/repos/eventlet/eventlet/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/eventlet/eventlet/issues/366/comments","events_url":"https://api.github.com/repos/eventlet/eventlet/issues/366/events","html_url":"https://github.com/eventlet/eventlet/issues/366","id":197751752,"number":366,"title":"Eventlet doesn't accept external requests for some reason","user":{"login":"iiDatKat","id":16504328,"avatar_url":"https://avatars.githubusercontent.com/u/16504328?v=3","gravatar_id":"","url":"https://api.github.com/users/iiDatKat","html_url":"https://github.com/iiDatKat","followers_url":"https://api.github.com/users/iiDatKat/followers","following_url":"https://api.github.com/users/iiDatKat/following{/other_user}","gists_url":"https://api.github.com/users/iiDatKat/gists{/gist_id}","starred_url":"https://api.github.com/users/iiDatKat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiDatKat/subscriptions","organizations_url":"https://api.github.com/users/iiDatKat/orgs","repos_url":"https://api.github.com/users/iiDatKat/repos","events_url":"https://api.github.com/users/iiDatKat/events{/privacy}","received_events_url":"https://api.github.com/users/iiDatKat/received_events","type":"User","site_admin":false},"labels":[{"id":21860230,"url":"https://api.github.com/repos/eventlet/eventlet/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-27T20:10:31Z","updated_at":"2016-12-27T23:52:43Z","closed_at":"2016-12-27T23:46:05Z","body":"I'm running Flask + Socket.IO on the Eventlet library that I got via pip. I don't think the Socket.IO part is relevant, because my error doesn't relate to it (I think).\r\n\r\nHere's my code:\r\n\r\n    from flask import Flask, request, render_template\r\n    from flask_socketio import SocketIO\r\n    from flask_cors import CORS, cross_origin\r\n    app = Flask(__name__)\r\n    app.config['SECRET_KEY']='secret!'\r\n    socketio = SocketIO(app)\r\n\r\n    import eventlet\r\n    eventlet.monkey_patch()\r\n\r\n    @app.route(\"/\")\r\n    def index():\r\n        return \"<html><body><h1>Hellooooooooooo</h1></body></html>\"\r\n\r\n    if __name__ == '__main__':\r\n        CORS(app)\r\n        socketio.run(app, host='0.0.0.0', debug = False, use_reloader=False)\r\n\r\nThe last line of code (`socketio.run(app, host='0.0.0.0', debug = False, use_reloader=False)`), according to the socket.io documentation, should run the Eventlet server, and it does. I specify the host to be `0.0.0.0`, so theoretically it should accept requests from outside, e.g. from local IP (192.168.1.xxx) and from localhost. \r\n\r\nWhen I run it, it does say that it's running on 0.0.0.0:5000 (default port on Flask), but when I try to access it via web browser (`192.168.1.xxx:5000`) it gets stuck and doesn't load the webpage.\r\n\r\nSo, it should work, but it doesn't. How do I make Eventlet accept GET and POST requests from clients accessing from local ip?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eventlet/eventlet/issues/comments/269399666","html_url":"https://github.com/eventlet/eventlet/issues/366#issuecomment-269399666","issue_url":"https://api.github.com/repos/eventlet/eventlet/issues/366","id":269399666,"user":{"login":"temoto","id":27057,"avatar_url":"https://avatars.githubusercontent.com/u/27057?v=3","gravatar_id":"","url":"https://api.github.com/users/temoto","html_url":"https://github.com/temoto","followers_url":"https://api.github.com/users/temoto/followers","following_url":"https://api.github.com/users/temoto/following{/other_user}","gists_url":"https://api.github.com/users/temoto/gists{/gist_id}","starred_url":"https://api.github.com/users/temoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temoto/subscriptions","organizations_url":"https://api.github.com/users/temoto/orgs","repos_url":"https://api.github.com/users/temoto/repos","events_url":"https://api.github.com/users/temoto/events{/privacy}","received_events_url":"https://api.github.com/users/temoto/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T23:52:43Z","updated_at":"2016-12-27T23:52:43Z","body":"(Assuming Linux or similar POSIX OS).\r\nTry to inspect `netstat -nat |fgrep -c TIME_WAIT`, if that number goes too high, it means you need to add `net.ipv4.tcp_tw_recycle = 1` to sysctl."}}
{"actor":{"display_login":"temoto"}}