Skip to content
Snippets Groups Projects
Commit d7bf95b9 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Log message if TCP watchdog timer setting fails.

parent 09e814d7
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,11 @@ static int tcp_accept(int fd)
struct timeval tv;
tv.tv_sec = TCP_ACTIVITY_WD;
tv.tv_usec = 0;
setsockopt(incoming, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
if (setsockopt(incoming, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
log_server_warning("Couldn't set up TCP connection "
"watchdog timer for fd=%d.\n",
incoming);
}
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment