Issue 261 in pyftpdlib: windows compatibility issue with TLS

8 views
Skip to first unread message

pyft...@googlecode.com

unread,
May 30, 2013, 3:30:10 PM5/30/13
to pyftpdli...@googlegroups.com
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

pyft...@googlecode.com

unread,
Dec 28, 2013, 5:56:31 AM12/28/13
to pyftpdli...@googlegroups.com

Comment #1 on issue 261 by eltej...@gmail.com: windows compatibility issue
with TLS
http://code.google.com/p/pyftpdlib/issues/detail?id=261

I have the same problem.
How can I solve it?

pyft...@googlecode.com

unread,
Dec 30, 2013, 6:46:48 AM12/30/13
to pyftpdli...@googlegroups.com
Updates:
Labels: OpSys-Windows

Comment #2 on issue 261 by g.rodola: windows compatibility issue with TLS
http://code.google.com/p/pyftpdlib/issues/detail?id=261

Please try r1243.

pyft...@googlecode.com

unread,
Apr 11, 2014, 5:21:43 PM4/11/14
to pyftpdli...@googlegroups.com

Comment #3 on issue 261 by g.rodola: windows compatibility issue with TLS
http://code.google.com/p/pyftpdlib/issues/detail?id=261

Was this fixed?
Reply all
Reply to author
Forward
0 new messages