- Made the SO_SNDBUF setting for the data connection socket for ftp uploads as

well. See change 28 Apr 2009.
This commit is contained in:
Daniel Stenberg
2009-05-07 20:00:44 +00:00
parent 6159c356c9
commit 9c788a529b
4 changed files with 27 additions and 6 deletions

View File

@@ -714,15 +714,13 @@ static void nosigpipe(struct connectdata *conn,
Buffer Size
*/
static void sndbufset(struct connectdata *conn,
curl_socket_t sockfd)
void Curl_sndbufset(curl_socket_t sockfd)
{
int val = CURL_MAX_WRITE_SIZE + 32;
(void)conn;
setsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, (const char *)&val, sizeof(val));
}
#else
#define sndbufset(x,y)
#define Curl_sndbufset(y)
#endif
@@ -829,7 +827,7 @@ singleipconnect(struct connectdata *conn,
nosigpipe(conn, sockfd);
sndbufset(conn, sockfd);
Curl_sndbufset(sockfd);
if(data->set.fsockopt) {
/* activate callback for setting socket options */