Commit d7bf95b9 authored by Marek Vavrusa's avatar Marek Vavrusa

Log message if TCP watchdog timer setting fails.

parent 09e814d7
......@@ -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",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment