code-policed
This commit is contained in:
parent
c4d7c1514f
commit
0614b90213
@ -126,8 +126,8 @@ tcpkeepalive(struct SessionHandle *data,
|
|||||||
optval = curlx_sltosi(data->set.tcp_keepintvl);
|
optval = curlx_sltosi(data->set.tcp_keepintvl);
|
||||||
KEEPALIVE_FACTOR(optval);
|
KEEPALIVE_FACTOR(optval);
|
||||||
vals.keepaliveinterval = optval;
|
vals.keepaliveinterval = optval;
|
||||||
if (WSAIoctl(sockfd, SIO_KEEPALIVE_VALS, (LPVOID) &vals, sizeof(vals),
|
if(WSAIoctl(sockfd, SIO_KEEPALIVE_VALS, (LPVOID) &vals, sizeof(vals),
|
||||||
NULL, 0, &dummy, NULL, NULL) != 0) {
|
NULL, 0, &dummy, NULL, NULL) != 0) {
|
||||||
infof(data, "Failed to set SIO_KEEPALIVE_VALS on fd %d: %d\n",
|
infof(data, "Failed to set SIO_KEEPALIVE_VALS on fd %d: %d\n",
|
||||||
(int)sockfd, WSAGetLastError());
|
(int)sockfd, WSAGetLastError());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user