{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/583","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/583/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/583/events","html_url":"https://github.com/KeepSafe/aiohttp/issues/583","id":112829371,"number":583,"title":"Cannot create connections with verify_ssl=False on OSX","user":{"login":"dudecc","id":5313284,"avatar_url":"https://avatars.githubusercontent.com/u/5313284?v=3","gravatar_id":"","url":"https://api.github.com/users/dudecc","html_url":"https://github.com/dudecc","followers_url":"https://api.github.com/users/dudecc/followers","following_url":"https://api.github.com/users/dudecc/following{/other_user}","gists_url":"https://api.github.com/users/dudecc/gists{/gist_id}","starred_url":"https://api.github.com/users/dudecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudecc/subscriptions","organizations_url":"https://api.github.com/users/dudecc/orgs","repos_url":"https://api.github.com/users/dudecc/repos","events_url":"https://api.github.com/users/dudecc/events{/privacy}","received_events_url":"https://api.github.com/users/dudecc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T15:30:58Z","updated_at":"2015-10-22T18:26:49Z","closed_at":null,"body":"I found this issue on my laptop which is still running OSX 10.8, but also on someone else's laptop running 10.9.\r\n\r\nThe issue seems to be [this line](https://github.com/KeepSafe/aiohttp/blob/d65f9be02b810670236f9372012168d595fac05d/aiohttp/connector.py#L452), where we assume unconditionally that ssl has the OP_NO_COMPRESSION attribute whenever we create a connection with verify_ssl=False.  But according to the [ssl docs](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_COMPRESSION), this attribute only exists if the version of libssl backing the ssl module is at least 1.0.0.  But on both of these OSX machines the _ssl extension module is linking in /usr/lib/libssl.0.9.8.dylib, and consequently ssl.OP_NO_COMPRESSION does not exist.\r\n\r\nThere was already a [workaround](https://github.com/KeepSafe/aiohttp/blob/230bdf30d84fdda03f8285704d09f58bbdc984e5/aiohttp/connector.py#L375) for this in the codebase fairly recently, but it got taken out when python3.3 support was dropped in [this commit](https://github.com/KeepSafe/aiohttp/commit/08cedb82a89ea2ec9a1e1f41b2d71a28b35ca45e#diff-7f25afde79f309e2f8722c26cf1f10adL375).  (For the record I am seeing this problem on 3.4.3.)"},"comment":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/comments/150313963","html_url":"https://github.com/KeepSafe/aiohttp/issues/583#issuecomment-150313963","issue_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/583","id":150313963,"user":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T18:26:49Z","updated_at":"2015-10-22T18:26:49Z","body":"Fixed by 0.18.2 bugfix"}}