diff src/event/quic/ngx_event_quic_connid.c @ 8955:32daba3aabb2 quic

QUIC: got rid of ngx_quic_create_temp_socket(). It was mostly copy of the ngx_quic_listen(). Now ngx_quic_listen() no longer generates server id and increments seqnum. Instead, the server id is generated when the socket is created. The ngx_quic_alloc_socket() function is renamed to ngx_quic_create_socket().
author Vladimir Homutov <vl@nginx.com>
date Mon, 27 Dec 2021 13:49:56 +0300
parents 9680f0badc95
children 1e2f4e9c8195
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_connid.c	Tue Dec 28 15:01:02 2021 +0300
+++ b/src/event/quic/ngx_event_quic_connid.c	Mon Dec 27 13:49:56 2021 +0300
@@ -497,7 +497,7 @@
 
     while (qc->nsockets < n) {
 
-        qsock = ngx_quic_alloc_socket(c, qc);
+        qsock = ngx_quic_create_socket(c, qc);
         if (qsock == NULL) {
             return NGX_ERROR;
         }