This fixes a Bad file descriptor error caused by attempting to access the request after it has already been closed.
This fixes a Bad file descriptor error caused by attempting to access…
… the request after it has already been closed.
I can confirm that this quiets the bad file descriptor exception that I saw in paramiko 18.104.22.168:
Exception happened during processing of request from ('127.0.0.1', 52904)
Traceback (most recent call last):
File "/usr/lib64/python2.7/SocketServer.py", line 582, in process_request_thread
File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.7/SocketServer.py", line 639, in init
File "tunnel.py", line 38, in handle
print('Tunnel closed from %r' % (self.request.getpeername(),))
File "/usr/lib64/python2.7/socket.py", line 224, in meth
File "/usr/lib64/python2.7/socket.py", line 170, in _dummy
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
Changelog re #36
(cherry picked from commit 5b8cdd990fea9269f8b5297ad1e3e52de08f2ee6)
I can confirm too.
My paramiko is 1.7.5 ( python-paramiko-1.7.5-2.1.el6-noarch ).
Thanks! Merged back to the 1.10 line.