- 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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user