{"action":"created","issue":{"url":"https://api.github.com/repos/gevent/gevent/issues/719","labels_url":"https://api.github.com/repos/gevent/gevent/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/gevent/gevent/issues/719/comments","events_url":"https://api.github.com/repos/gevent/gevent/issues/719/events","html_url":"https://github.com/gevent/gevent/issues/719","id":125060735,"number":719,"title":"EOF occurred in violation of protocol","user":{"login":"muatik","id":106846,"avatar_url":"https://avatars.githubusercontent.com/u/106846?v=3","gravatar_id":"","url":"https://api.github.com/users/muatik","html_url":"https://github.com/muatik","followers_url":"https://api.github.com/users/muatik/followers","following_url":"https://api.github.com/users/muatik/following{/other_user}","gists_url":"https://api.github.com/users/muatik/gists{/gist_id}","starred_url":"https://api.github.com/users/muatik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muatik/subscriptions","organizations_url":"https://api.github.com/users/muatik/orgs","repos_url":"https://api.github.com/users/muatik/repos","events_url":"https://api.github.com/users/muatik/events{/privacy}","received_events_url":"https://api.github.com/users/muatik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-05T21:58:35Z","updated_at":"2016-01-13T15:42:27Z","closed_at":null,"body":"I am trying to run a socket server with ssl support. For this purpose I am usung flask-socketio which uses gevent behind. I think flask-socketio has nothing to do with ssl options, it is just passing to ssl configurations to gevent init. \r\n\r\nSocket server with ssl support was possible, but after re-installing all the pip packages, I started to get the following error. \r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 327, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/server.py\", line 102, in wrap_socket_and_handle\r\n    ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 410, in wrap_socket\r\n    ciphers=ciphers)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 93, in __init__\r\n    self.do_handshake()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 310, in do_handshake\r\n    return self._sslobj.do_handshake()\r\nSSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol\r\n<Greenlet at 0x7fbc02c4a9b0: <bound method WSGIServer.wrap_socket_and_handle of <WSGIServer at 0x7fbc03b9b110 fileno=9 address=0.0.0.0:5000>>(<socket at 0x7fbc02bf7590 fileno=76 sock=10.122.97, ('41.234.232.59', 40471))> failed with SSLError\r\n```\r\n\r\nis there any solution?"},"comment":{"url":"https://api.github.com/repos/gevent/gevent/issues/comments/171335075","html_url":"https://github.com/gevent/gevent/issues/719#issuecomment-171335075","issue_url":"https://api.github.com/repos/gevent/gevent/issues/719","id":171335075,"user":{"login":"jamadden","id":1256082,"avatar_url":"https://avatars.githubusercontent.com/u/1256082?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadden","html_url":"https://github.com/jamadden","followers_url":"https://api.github.com/users/jamadden/followers","following_url":"https://api.github.com/users/jamadden/following{/other_user}","gists_url":"https://api.github.com/users/jamadden/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadden/subscriptions","organizations_url":"https://api.github.com/users/jamadden/orgs","repos_url":"https://api.github.com/users/jamadden/repos","events_url":"https://api.github.com/users/jamadden/events{/privacy}","received_events_url":"https://api.github.com/users/jamadden/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T15:42:27Z","updated_at":"2016-01-13T15:42:27Z","body":"Thanks, that is helpful, especially because you see this on Python 3, because the only change to the SSL module for Python 3 between rc1 and rc2 was in the exceptions that get raised on timeouts. This traded one loop for another apparently equivalent loop, whose only apparent difference is that it properly respects the total timeout.\r\n\r\nPosting the traceback you get on Python 3 might also be helpful."}}