summaryrefslogtreecommitdiff
path: root/lib/connect.h
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/connect.h
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/connect.h')
-rw-r--r--lib/connect.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/connect.h b/lib/connect.h
index 38ed4125b..ae47c2174 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -54,4 +54,20 @@ long Curl_timeleft(struct connectdata *conn,
CURLcode Curl_getconnectinfo(struct SessionHandle *data,
long *param_longp,
struct connectdata **connp);
+
+#ifdef WIN32
+/* When you run a program that uses the Windows Sockets API, you may
+ experience slow performance when you copy data to a TCP server.
+
+ http://support.microsoft.com/kb/823764
+
+ Work-around: Make the Socket Send Buffer Size Larger Than the Program Send
+ Buffer Size
+
+*/
+void Curl_sndbufset(curl_socket_t sockfd);
+#else
+#define Curl_sndbufset(y)
+#endif
+
#endif