[Privoxy-commits] [privoxy] 03/04: read_https_request_body(): Improve a couple of log messages
User Git
git at git.privoxy.org
Sat Apr 23 08:44:45 UTC 2022
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 59d3fb7457a63f1c1aca6fc6e5517b7d88c224b2
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Mar 26 17:19:01 2021 +0100
read_https_request_body(): Improve a couple of log messages
... to make their origin more clear.
Sponsored by: Robert Klemme
---
jcc.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/jcc.c b/jcc.c
index c8367e54..26fc6304 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2322,13 +2322,15 @@ static int read_https_request_body(struct client_state *csp)
size_t max_bytes_to_read = to_read < sizeof(buf) ? to_read : sizeof(buf);
log_error(LOG_LEVEL_CONNECT,
- "Waiting for up to %lu bytes of request body from the client.",
+ "Buffering encrypted client body. Prepared to read up to %lu bytes.",
max_bytes_to_read);
len = ssl_recv_data(&(csp->ssl_client_attr), buf,
(unsigned)max_bytes_to_read);
if (len <= 0)
{
- log_error(LOG_LEVEL_CONNECT, "Failed receiving request body from %s", csp->ip_addr_str);
+ log_error(LOG_LEVEL_CONNECT,
+ "Did not receive the whole encrypted request body from %s",
+ csp->ip_addr_str);
return 1;
}
if (add_to_iob(csp->client_iob, csp->config->buffer_limit, (char *)buf, len))
@@ -2341,13 +2343,13 @@ static int read_https_request_body(struct client_state *csp)
if (to_read != 0)
{
log_error(LOG_LEVEL_CONNECT,
- "Not enough request body has been read: expected %lu more bytes",
+ "Not enough encrypted request body has been read: expected %lu more bytes",
to_read);
return 1;
}
log_error(LOG_LEVEL_CONNECT,
- "The last %llu bytes of the request body have been read",
+ "The last %llu bytes of the encrypted request body have been read",
csp->expected_client_content_length);
return 0;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list