comparison src/event/ngx_event_quic.c @ 8625:4416b7ab0a27 quic

QUIC: multiple versions support. Draft-29 and beyond are now treated as compatible versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 10 Nov 2020 00:23:04 +0300
parents 340cd26158fb
children e0947c952d43
comparison
equal deleted inserted replaced
8624:340cd26158fb 8625:4416b7ab0a27
1161 static ngx_int_t 1161 static ngx_int_t
1162 ngx_quic_negotiate_version(ngx_connection_t *c, ngx_quic_header_t *inpkt) 1162 ngx_quic_negotiate_version(ngx_connection_t *c, ngx_quic_header_t *inpkt)
1163 { 1163 {
1164 size_t len; 1164 size_t len;
1165 ngx_quic_header_t pkt; 1165 ngx_quic_header_t pkt;
1166 1166 static u_char buf[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE];
1167 /* buffer size is calculated assuming a single supported version */
1168 static u_char buf[NGX_QUIC_MAX_LONG_HEADER + sizeof(uint32_t)];
1169 1167
1170 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, 1168 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
1171 "sending version negotiation packet"); 1169 "sending version negotiation packet");
1172 1170
1173 pkt.log = c->log; 1171 pkt.log = c->log;