{"action":"created","issue":{"url":"https://api.github.com/repos/shazow/urllib3/issues/482","labels_url":"https://api.github.com/repos/shazow/urllib3/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/shazow/urllib3/issues/482/comments","events_url":"https://api.github.com/repos/shazow/urllib3/issues/482/events","html_url":"https://github.com/shazow/urllib3/issues/482","id":44789970,"number":482,"title":"wrap_socket does not accept server_hostname in 2.7.x (breaks with gevent)","user":{"login":"sharoonthomas","id":305807,"avatar_url":"https://avatars.githubusercontent.com/u/305807?v=3","gravatar_id":"","url":"https://api.github.com/users/sharoonthomas","html_url":"https://github.com/sharoonthomas","followers_url":"https://api.github.com/users/sharoonthomas/followers","following_url":"https://api.github.com/users/sharoonthomas/following{/other_user}","gists_url":"https://api.github.com/users/sharoonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/sharoonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharoonthomas/subscriptions","organizations_url":"https://api.github.com/users/sharoonthomas/orgs","repos_url":"https://api.github.com/users/sharoonthomas/repos","events_url":"https://api.github.com/users/sharoonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/sharoonthomas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shazow/urllib3/labels/Bounty","name":"Bounty","color":"129e5e"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-10-03T10:27:06Z","updated_at":"2015-02-22T05:57:12Z","closed_at":null,"body":"The recent backport of SNI related features into 2.7 series has resulted in urllib looking at python 2.7.8+ as python 3.2+ and ssl_.py calls wrap_socket with the server_hostname as argument. While this works well when not monkey patched with gevent, I am reporting the bug here since one of the features of this library is gevent compat.\r\n\r\n<bountysource-plugin>\r\n---\r\nThere is a **[$15 open bounty](https://www.bountysource.com/issues/5067076-wrap_socket-does-not-accept-server_hostname-in-2-7-x-breaks-with-gevent?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/shazow/urllib3/issues/comments/75421511","html_url":"https://github.com/shazow/urllib3/issues/482#issuecomment-75421511","issue_url":"https://api.github.com/repos/shazow/urllib3/issues/482","id":75421511,"user":{"login":"sharoonthomas","id":305807,"avatar_url":"https://avatars.githubusercontent.com/u/305807?v=3","gravatar_id":"","url":"https://api.github.com/users/sharoonthomas","html_url":"https://github.com/sharoonthomas","followers_url":"https://api.github.com/users/sharoonthomas/followers","following_url":"https://api.github.com/users/sharoonthomas/following{/other_user}","gists_url":"https://api.github.com/users/sharoonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/sharoonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharoonthomas/subscriptions","organizations_url":"https://api.github.com/users/sharoonthomas/orgs","repos_url":"https://api.github.com/users/sharoonthomas/repos","events_url":"https://api.github.com/users/sharoonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/sharoonthomas/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T05:57:12Z","updated_at":"2015-02-22T05:57:12Z","body":"@shazow I am keeping a watch on this patch, but a fully working patch on gevent for this cannot be sent until gevent/gevent#477 is fixed. To be specific:\r\n\r\n* SSLSocket implementation in gevent does not accept server_hostname (though python 2.7.9 does).\r\n* ssl. sslwrap was removed by python 2.7.9 (this one is easier to get around).\r\n\r\nFor anyone who might pick off from here the code is on my fork (https://github.com/sharoonthomas/urllib3/compare/issue-482)"}}