SNI on api.twitter.com?


#1

Hi,

Could it be that SNI was recently enabled on api.twitter.com ? If so, that is a bummer for python 2.x client applications that rely on the python library runtime to connect through SSL because it does not support it.

i.e., I see this on https://api.twitter.com/1.1/friendships/lookup.json:

File “/usr/lib/python2.7/httplib.py”, line 1176, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File “/usr/lib/python2.7/ssl.py”, line 440, in wrap_socket
ciphers=ciphers)
File “/usr/lib/python2.7/ssl.py”, line 200, in init
self.do_handshake()
File “/usr/lib/python2.7/ssl.py”, line 362, in do_handshake
self._sslobj.do_handshake()
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol