summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-24 13:21:46 +0000
committerGuido van Rossum <guido@python.org>2000-05-24 13:21:46 +0000
commitacc9edaa5a2ef550c7a3a11504cb892dc718475f (patch)
treedd7a82d78c3c5a2adf8e8a3e971aa463bf9a2333 /Python/pythonrun.c
parent5b5bf6bb5b89efbea24bc384c112e8d9c1cc2034 (diff)
downloadcpython-acc9edaa5a2ef550c7a3a11504cb892dc718475f.tar.gz
Fix a problem reported by Oleg Broytmann, who complains that very
often, ftp URLs hang in the final close. Further analysis suggests that this is because the close hook in addclosehook() calls the hook before acually closing the connection. The hook, in this case, waits for the '226 Transfer complete' status from the server on the command socket. However, more and more ftp servers only send this status when the data socket has actually been closed -- causing a deadlock. The fix is simple: in addclosehook.close(), call addbase.close() *before* calling the closehook.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions