receive_client_request(): Improve error message
authorFabian Keil <fk@fabiankeil.de>
Fri, 26 Mar 2021 14:34:40 +0000 (15:34 +0100)
committerFabian Keil <fk@fabiankeil.de>
Tue, 29 Mar 2022 15:01:06 +0000 (17:01 +0200)
jcc.c

diff --git a/jcc.c b/jcc.c
index 5ed93b3..780969c 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1835,7 +1835,8 @@ static jb_err receive_client_request(struct client_state *csp)
          if (!data_is_available(csp->cfd, csp->config->socket_timeout))
          {
             log_error(LOG_LEVEL_ERROR,
          if (!data_is_available(csp->cfd, csp->config->socket_timeout))
          {
             log_error(LOG_LEVEL_ERROR,
-               "Stopped grabbing the client headers.");
+               "Client headers did not arrive in time. Timeout: %d",
+               csp->config->socket_timeout);
             destroy_list(headers);
             return JB_ERR_PARSE;
          }
             destroy_list(headers);
             return JB_ERR_PARSE;
          }