summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-05-07 20:00:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-05-07 20:00:44 +0000
commit9c788a529beb63e95de5be013bb4b0f26f8456a0 (patch)
tree8f02914db27ff155e08e75001cf7b72ee267f353 /lib/ftp.c
parent6159c356c9491ad235ea2bef4f4d3c0258a62364 (diff)
downloadcurl-9c788a529beb63e95de5be013bb4b0f26f8456a0.tar.gz
- Made the SO_SNDBUF setting for the data connection socket for ftp uploads as
well. See change 28 Apr 2009.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index e8f51c685..e9931ae04 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2308,6 +2308,9 @@ static CURLcode ftp_state_stor_resp(struct connectdata *conn,
Curl_pgrsSetUploadSize(data, data->set.infilesize);
+ /* set the SO_SNDBUF for the secondary socket for those who need it */
+ Curl_sndbufset(conn->sock[SECONDARYSOCKET]);
+
result = Curl_setup_transfer(conn, -1, -1, FALSE, NULL, /* no download */
SECONDARYSOCKET, ftp->bytecountp);
state(conn, FTP_STOP);