diff options
| author | Vladimir Homutov <vl@nginx.com> | 2020-03-24 12:15:39 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2020-03-24 12:15:39 +0300 |
| commit | 780f4f660c17ac2695521b00d495a6c0130ef8c3 (patch) | |
| tree | c793f9afb1ded15c31792669b4b9af19b26c16d9 /src | |
| parent | 57544f758953a968d5c02c84d59fea33a7d48ea5 (diff) | |
| download | nginx-780f4f660c17ac2695521b00d495a6c0130ef8c3.tar.gz nginx-780f4f660c17ac2695521b00d495a6c0130ef8c3.tar.bz2 | |
Added QUIC version check for sending HANDSHAKE_DONE frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/event/ngx_event_quic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index d913f4f43..726775122 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -967,7 +967,6 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, int sslerr; ssize_t n; ngx_ssl_conn_t *ssl_conn; - ngx_quic_frame_t *frame; if (f->offset != 0x0) { ngx_log_error(NGX_LOG_INFO, c->log, 0, @@ -1014,6 +1013,10 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "handshake completed successfully"); +#if (NGX_QUIC_DRAFT_VERSION >= 27) + { + ngx_quic_frame_t *frame; + frame = ngx_pcalloc(c->pool, sizeof(ngx_quic_frame_t)); if (frame == NULL) { return NGX_ERROR; @@ -1024,6 +1027,8 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, frame->type = NGX_QUIC_FT_HANDSHAKE_DONE; ngx_sprintf(frame->info, "HANDSHAKE DONE on handshake completed"); ngx_quic_queue_frame(c->quic, frame); + } +#endif } ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |
