]> granicus.if.org Git - curl/commit
FTP: wait on both connections during active STOR state
authorDaniel Stenberg <daniel@haxx.se>
Fri, 5 Apr 2013 06:39:24 +0000 (08:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 6 Apr 2013 15:21:38 +0000 (17:21 +0200)
commit57aeabcc1a20ff8ed1d725ef0309d0d8f64194d8
treeead4ebe82afaf0c9143a6b211556fbefca042608
parent9474c4a9a5828291fc3c1157b8536031d3fa4cac
FTP: wait on both connections during active STOR state

When doing PORT and upload (STOR), this function needs to extract the
file descriptor for both connections so that it will respond immediately
when the server eventually connects back.

This flaw caused active connections to become unnecessary slow but they
would still often work due to the normal polling on a timeout. The bug
also would not occur if the server connected back very fast, like when
testing on local networks.

Bug: http://curl.haxx.se/bug/view.cgi?id=1183
Reported by: Daniel Theron
lib/ftp.c