summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-17 21:03:51 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-17 21:03:51 +0100
commitda1bc1425d954ab5f3cb518fac10286ba958c3bc (patch)
tree22ae8bd33462c240ce07fb096ac9c8efb0f1e96f /src/reqs.c
parent22e4898519e9db7aabacad1343c20fc49176dbf4 (diff)
tune error messages to show select or poll depending on what is used
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 49f77b6..f6a9233 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1163,11 +1163,11 @@ static void relay_connection (struct conn_s *connptr)
if (ret == 0) {
log_message (LOG_INFO,
- "Idle Timeout (after select)");
+ "Idle Timeout (after " SELECT_OR_POLL ")");
return;
} else if (ret < 0) {
log_message (LOG_ERR,
- "relay_connection: select() error \"%s\". "
+ "relay_connection: " SELECT_OR_POLL "() error \"%s\". "
"Closing connection (client_fd:%d, server_fd:%d)",
strerror (errno), connptr->client_fd,
connptr->server_fd);
@@ -1440,7 +1440,7 @@ get_request_entity(struct conn_s *connptr)
if (ret == -1) {
log_message (LOG_ERR,
- "Error calling select on client fd %d: %s",
+ "Error calling " SELECT_OR_POLL " on client fd %d: %s",
connptr->client_fd, strerror(errno));
} else if (ret == 0) {
log_message (LOG_INFO, "no entity");
@@ -1459,7 +1459,7 @@ get_request_entity(struct conn_s *connptr)
ret = 0;
}
} else {
- log_message (LOG_ERR, "strange situation after select: "
+ log_message (LOG_ERR, "strange situation after " SELECT_OR_POLL ": "
"ret = %d, but client_fd (%d) is not readable...",
ret, connptr->client_fd);
ret = -1;