aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-06-10 23:17:51 +0300
committerVladimir Homutov <vl@nginx.com>2021-06-10 23:17:51 +0300
commitbf7b32e1b60e48db7cf2a938dc4a57dfb13ce0a6 (patch)
tree11c96bf32f0b7578b271fe622c188d9e99fc8426
parent0c77dc9c0bd9ec6c4cc38f460dfc0180a94b9910 (diff)
downloadnginx-bf7b32e1b60e48db7cf2a938dc4a57dfb13ce0a6.tar.gz
nginx-bf7b32e1b60e48db7cf2a938dc4a57dfb13ce0a6.zip
QUIC: improved errors readability.
-rw-r--r--src/event/quic/ngx_event_quic.c3
-rw-r--r--src/event/quic/ngx_event_quic_ssl.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c
index 9da43ce5c..c89a99223 100644
--- a/src/event/quic/ngx_event_quic.c
+++ b/src/event/quic/ngx_event_quic.c
@@ -912,7 +912,8 @@ ngx_quic_process_payload(ngx_connection_t *c, ngx_quic_header_t *pkt)
if (!ngx_quic_keys_available(qc->keys, pkt->level)) {
ngx_log_error(NGX_LOG_INFO, c->log, 0,
- "quic no level %d keys yet, ignoring packet", pkt->level);
+ "quic no %s keys, ignoring packet",
+ ngx_quic_level_name(pkt->level));
return NGX_DECLINED;
}
diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c
index 3ade0b5ac..1ee687b38 100644
--- a/src/event/quic/ngx_event_quic_ssl.c
+++ b/src/event/quic/ngx_event_quic_ssl.c
@@ -404,6 +404,7 @@ ngx_quic_crypto_input(ngx_connection_t *c, ngx_chain_t *data)
if (sslerr != SSL_ERROR_WANT_READ) {
ngx_ssl_error(NGX_LOG_ERR, c->log, 0, "SSL_do_handshake() failed");
+ qc->error_reason = "handshake failed";
return NGX_ERROR;
}