I am experiencing an SSL bug however I am not able to determine if the issue is on the Python SSL module side or the OpenSSL side.
I am using Python 2.7.1 and OpenSSL 0.9.8b (CentOS / RedHat) and the Python server is using non-blocking sockets.
The following traceback is found when certain connections are made, this happens regularly however I am having trouble finding the exact client and cause, the clients are connecting over a satellite link. Here is the output gathered from an strace:
write(2, "ERROR:root:Exception in I/O handler for fd 9533
Traceback (most recent call last):
File \"/hub/switchboard/lib/ioloop.py\", line 253, in start
self._handlers[fd](fd, events)
File \"/hub/switchboard/lib/stack_context.py\", line 127, in wrapped
callback(*args, **kwargs)
File \"/hub/switchboard/lib/iostream.py\", line 168, in _handle_events
self._handle_read()
File \"/hub/switchboard/lib/iostream.py\", line 360, in _handle_read
super(SSLIOStream, self)._handle_read()
File \"/hub/switchboard/lib/iostream.py\", line 210, in _handle_read
chunk = self.socket.recv(self.read_chunk_size)
File \"/hub/apps/Python-2.7/lib/python2.7/ssl.py\", line 217, in recv
return self.read(buflen)
File \"/hub/apps/Python-2.7/lib/python2.7/ssl.py\", line 138, in read
return self._sslobj.read(len)
SSLError: [Errno 1] _ssl.c:1347: error:14095044:SSL routines:SSL3_READ_N:internal error\n", 896) = 896