4udak / pyftpdlib

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

FTPS server does not SSL-shutdown() the control connection #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up a FTPS server
2. Connect with filezilla
3. Don't do anything and wait for timeout

What is the expected output? What do you see instead?
On timeout, here is what filezilla returns:

15:17:37    Status: Directory listing successful
15:22:37    Response:   421 Control connection timed out.
15:22:37    Error:  GnuTLS error -9: A TLS packet with unexpected length was 
received.
15:22:37    Status: Server did not properly shut down TLS connection
15:22:37    Error:  Could not read from socket: ECONNABORTED - Connection aborted
15:22:37    Error:  Disconnected from server

Please use labels and text to provide additional information.
At the current state SSL shutdown() is executed only for the data connection.
It seems this must be done for the control connections as well.

Original issue reported on code.google.com by g.rodola on 22 Mar 2011 at 12:24

GoogleCodeExporter commented 9 years ago
Fixed in r840.

Original comment by g.rodola on 22 Mar 2011 at 12:28

GoogleCodeExporter commented 9 years ago
I can verify that this change solves the issue.

Original comment by btimby@gmail.com on 22 Mar 2011 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 22 Mar 2011 at 2:54

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