Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Library
New issue 261 by
brianto...@gmail.com: windows compatibility issue with TLS
http://code.google.com/p/pyftpdlib/issues/detail?id=261
What steps will reproduce the problem?
run the tls_ftpd.py demo
What is the expected output?
in filezilla 3.7.0.2
Command: PASV
Response: 227 Entering passive mode (127,0,0,1,208,219).
Command: MLSD
Response: 150 File status okay. About to open data connection.
Response: 226 Transfer complete.
Status: Directory listing successful
What do you see instead?
in filezilla 3.7.0.2
Command: PASV
Response: 227 Entering passive mode (127,0,0,1,207,165).
Command: MLSD
Response: 150 File status okay. About to open data connection.
Error: GnuTLS error -110: The TLS connection was non-properly terminated.
Status: Server did not properly shut down TLS connection
Error: Transfer connection interrupted: ECONNABORTED - Connection aborted
Response: 226 Transfer complete.
Error: Failed to retrieve directory listing
What version of pyftpdlib are you using? On what operating system? Which
Python version?
1.2.0 on python 3.3.2 windows 7 x64
Please provide any additional information below.
The problem is under "def _do_ssl_shutdown(self)" at the line:
os.write(self.socket.fileno(), b(''))
I commented the line out and all worked.
Otherwise I get a bad file descriptor error
According to python socket documentation:
socket.fileno() "Under Windows the small integer returned by this method
cannot be used where a file descriptor can be used (such as os.fdopen()).
Unix does not have this limitation."
I'm assuming TLS was not tested under Windows.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings