mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
removed the ip number from the notcpdelay function
This commit is contained in:
parent
593170d1de
commit
db6dc49b0b
@ -478,8 +478,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Curl_setNoDelay(struct connectdata *conn,
|
static void Curl_setNoDelay(struct connectdata *conn,
|
||||||
curl_socket_t sockfd,
|
curl_socket_t sockfd)
|
||||||
int ip)
|
|
||||||
{
|
{
|
||||||
#ifdef TCP_NODELAY
|
#ifdef TCP_NODELAY
|
||||||
struct SessionHandle *data= conn->data;
|
struct SessionHandle *data= conn->data;
|
||||||
@ -488,7 +487,7 @@ static void Curl_setNoDelay(struct connectdata *conn,
|
|||||||
infof(data, "Could not set TCP_NODELAY: %s\n",
|
infof(data, "Could not set TCP_NODELAY: %s\n",
|
||||||
Curl_strerror(conn, Curl_ourerrno()));
|
Curl_strerror(conn, Curl_ourerrno()));
|
||||||
else
|
else
|
||||||
infof(data,"TCP_NODELAY set for IPv%d\n", ip);
|
infof(data,"TCP_NODELAY set\n");
|
||||||
#else
|
#else
|
||||||
(void)conn;
|
(void)conn;
|
||||||
(void)sockfd;
|
(void)sockfd;
|
||||||
@ -575,7 +574,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
else if(data->tcp_nodelay)
|
else if(data->tcp_nodelay)
|
||||||
Curl_setNoDelay(conn, sockfd, 6);
|
Curl_setNoDelay(conn, sockfd);
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* Connecting with old style IPv4-only support
|
* Connecting with old style IPv4-only support
|
||||||
@ -596,7 +595,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if(data->tcp_nodelay)
|
else if(data->tcp_nodelay)
|
||||||
Curl_setNoDelay(conn, sockfd, 4);
|
Curl_setNoDelay(conn, sockfd);
|
||||||
|
|
||||||
/* nasty address work before connect can be made */
|
/* nasty address work before connect can be made */
|
||||||
memset((char *) &serv_addr, '\0', sizeof(serv_addr));
|
memset((char *) &serv_addr, '\0', sizeof(serv_addr));
|
||||||
|
Loading…
Reference in New Issue
Block a user