4udak / pyftpdlib

Automatically exported from code.google.com/p/pyftpdlib
Other
1 stars 1 forks source link

Crash in self.socket.shutdown() #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem described here:
https://groups.google.com/forum/#!topic/pyftpdlib/h7pPybzAx14

Original issue reported on code.google.com by g.rodola on 27 Apr 2011 at 9:38

GoogleCodeExporter commented 9 years ago
I switched to the svn copy last night and it crashed again this morning and the 
server had to be restarted:

Traceback (most recent call last):
  File "./lfcftpd.py", line 247, in <module>
    ftpd.serve_forever()
  File "./lib/pyftpdlib/ftpserver.py", line 3472, in serve_forever
    poll_fun(timeout)
  File "/opt/python2.7/lib/python2.7/asyncore.py", line 151, in poll
    read(obj)
  File "/opt/python2.7/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_error()
  File "./lib/pyftpdlib/ftpserver.py", line 2111, in handle_error
    self.close()
  File "./lib/pyftpdlib/contrib/handlers.py", line 210, in close
    self._do_ssl_shutdown()
  File "./lib/pyftpdlib/contrib/handlers.py", line 197, in _do_ssl_shutdown
    done = self.socket.shutdown()
OpenSSL.SSL.Error: []

Original comment by guppy...@gmail.com on 28 Apr 2011 at 3:42

GoogleCodeExporter commented 9 years ago
I guess you don't know what client was being used and what was doing in that 
moment, right?

Original comment by g.rodola on 28 Apr 2011 at 3:45

GoogleCodeExporter commented 9 years ago
No I don't unfortunately.

Original comment by guppy...@gmail.com on 28 Apr 2011 at 8:26

GoogleCodeExporter commented 9 years ago
This is now fixed in r855.
The error is still printed to stderr but the server no longer crashes.
I'll see whether suppress the error message as well but first I want to figure 
out what it means exactly.

Original comment by g.rodola on 30 Apr 2011 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 8 May 2011 at 11:17

GoogleCodeExporter commented 9 years ago
The error should be due to a pyopenssl bug:
https://bugs.launchpad.net/pyopenssl/+bug/785985
I should have fixed it in r861.
Can you confirm you no longer see the error?

Original comment by g.rodola on 21 May 2011 at 1:55

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 3 Jan 2012 at 11:40

GoogleCodeExporter commented 9 years ago
0.7.0 is out. Closing this out as definitively fixed.

Original comment by g.rodola on 25 Jan 2012 at 7:24