]> granicus.if.org Git - curl/commit
FTP: do the HTTP CONNECT for data connection blocking
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Jun 2015 22:30:06 +0000 (00:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Jun 2015 12:00:12 +0000 (14:00 +0200)
commitb88f980a7437abc1159a1185c04d381347c8f5b1
tree870afd06338a85f7dac3e1211dfd4a90c4860325
parent85739723ba9536cb1458f4bd2d00df4691b59bb1
FTP: do the HTTP CONNECT for data connection blocking

** WORK-AROUND **

The introduced non-blocking general behaviour for Curl_proxyCONNECT()
didn't work for the data connection establishment unless it was very
fast. The newly introduced function argument makes it operate in a more
blocking manner, more like it used to work in the past. This blocking
approach is only used when the FTP data connecting through HTTP proxy.

Blocking like this is bad. A better fix would make it work more
asynchronously.

Bug: https://github.com/bagder/curl/issues/278
lib/ftp.c
lib/http_proxy.c
lib/http_proxy.h