mirror of
https://github.com/nginx/nginx.git
synced 2025-06-23 14:30:40 +08:00
QUIC: improved errors readability.
This commit is contained in:
parent
0c77dc9c0b
commit
bf7b32e1b6
@ -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)) {
|
if (!ngx_quic_keys_available(qc->keys, pkt->level)) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
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;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -404,6 +404,7 @@ ngx_quic_crypto_input(ngx_connection_t *c, ngx_chain_t *data)
|
|||||||
|
|
||||||
if (sslerr != SSL_ERROR_WANT_READ) {
|
if (sslerr != SSL_ERROR_WANT_READ) {
|
||||||
ngx_ssl_error(NGX_LOG_ERR, c->log, 0, "SSL_do_handshake() failed");
|
ngx_ssl_error(NGX_LOG_ERR, c->log, 0, "SSL_do_handshake() failed");
|
||||||
|
qc->error_reason = "handshake failed";
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user