Skip to content
Snippets Groups Projects
Commit bd1e3f59 authored by rswindell's avatar rswindell
Browse files

Enable protocol-level (TCP) keep-alives on the connected socket, for ~KenDB3.

parent 113505e8
Branches
Tags
No related merge requests found
......@@ -537,6 +537,8 @@ connected:
failcode=FAILURE_DISCONNECTED;
goto connect_failed;
}
int keepalives = TRUE;
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void*)&keepalives, sizeof(keepalives));
uifc.pop(NULL);
return(sock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment