[Python-bugs-list] [ python-Bugs-534625 ] ftplib hangs: ftp=FTP('ftp.example.com')

noreply@sourceforge.net noreply@sourceforge.net
Mon, 25 Mar 2002 09:41:46 -0800


Bugs item #534625, was opened at 2002-03-25 11:08
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=534625&group_id=5470

Category: Macintosh
Group: Python 2.2.1 candidate
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Pascal Oberndörfer (oberndoerfer)
Assigned to: Michael Hudson (mwh)
Summary: ftplib hangs: ftp=FTP('ftp.example.com')

Initial Comment:
Typing the following at the interpreter:

>>> from ftplib import FTP
>>> ftp = FTP('ftp.example.com')

the interpreter hangs.

MacPython 2.2.1c1 on MacOS X 10.1.3


----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2002-03-25 17:41

Message:
Logged In: YES 
user_id=6656

Done, in revision 1.200.6.3, so closing.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2002-03-25 15:36

Message:
Logged In: YES 
user_id=45365

Fixed in socketmodule.c 1.211. Michael, can you check it into the 221 branch?

(for reference: this turned out to be a problem with the fix for getting rid of short reads on urlopened files. With the GUSI/MSL combo we can get either read()s from binary buffered files working or read()s from binary unbuffered files, but not both. The fix (workaround, actually) is to have socket.makefile() force unbuffered for binary files.)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=534625&group_id=5470