summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/reqs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 00e20aa..37f87d5 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1126,7 +1126,12 @@ static void relay_connection (struct conn_s *connptr)
return;
}
- socket_nonblocking (connptr->server_fd);
+ ret = socket_nonblocking (connptr->server_fd);
+ if (ret != 0) {
+ log_message(LOG_ERR, "Failed to set the server socket "
+ "to non-blocking: %s", strerror(errno));
+ return;
+ }
last_access = time (NULL);