aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-05 01:39:07 +0000
committerYang Tse <yangsita@gmail.com>2008-01-05 01:39:07 +0000
commit29121898758db80720ff6229cececef5d038c06e (patch)
tree073ad174ae3f3fe056aa45b62cf70e7af9ce2eef /src
parentfcb2595ed61554578183da96aa476f2effb0a8b1 (diff)
Don't abort operation when attempting to set SO_KEEPALIVE
fails, just issue a warning and ignore the failure.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 78f37c79a..1f3ff706b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1447,8 +1447,10 @@ static int set_so_keepalive(void *clientp, curl_socket_t curlfd,
case CURLSOCKTYPE_IPCXN:
if(setsockopt(curlfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&onoff,
sizeof(onoff)) < 0) {
+ /* don't abort operation, just issue a warning */
+ SET_SOCKERRNO(0);
warnf(clientp, "Could not set SO_KEEPALIVE!\n");
- return 1;
+ return 0;
}
break;
default: