summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-04-01 13:27:42 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-04-01 13:27:42 +0300
commit22671b37e3720af223bb2e563a940eaefe28aeb7 (patch)
treef383f7848fc086901b7d3561c22eeaddb23da1ae
parent833a28244fb3a950c93cb5af9001683aea6b30ca (diff)
downloadnginx-22671b37e3720af223bb2e563a940eaefe28aeb7.tar.gz
nginx-22671b37e3720af223bb2e563a940eaefe28aeb7.tar.bz2
Sending HANDSHAKE_DONE just once with BoringSSL.
If early data is accepted, SSL_do_handshake() completes as soon as ClientHello is processed. SSL_in_init() will report the handshake is still in progress.
-rw-r--r--src/event/ngx_event_quic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index 8c577514e..be86cf3bc 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1060,7 +1060,7 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt,
return NGX_ERROR;
}
- } else if (n == 1) {
+ } else if (n == 1 && !SSL_in_init(ssl_conn)) {
c->quic->state = NGX_QUIC_ST_APPLICATION;
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,