mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Don't abort operation when attempting to set SO_KEEPALIVE
fails, just issue a warning and ignore the failure.
This commit is contained in:
parent
fcb2595ed6
commit
2912189875
@ -1447,8 +1447,10 @@ static int set_so_keepalive(void *clientp, curl_socket_t curlfd,
|
|||||||
case CURLSOCKTYPE_IPCXN:
|
case CURLSOCKTYPE_IPCXN:
|
||||||
if(setsockopt(curlfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&onoff,
|
if(setsockopt(curlfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&onoff,
|
||||||
sizeof(onoff)) < 0) {
|
sizeof(onoff)) < 0) {
|
||||||
|
/* don't abort operation, just issue a warning */
|
||||||
|
SET_SOCKERRNO(0);
|
||||||
warnf(clientp, "Could not set SO_KEEPALIVE!\n");
|
warnf(clientp, "Could not set SO_KEEPALIVE!\n");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user