comparison src/event/ngx_event_quic.c @ 8136:b38b41127489 quic

QUIC: added connection id debug.
author Vladimir Homutov <vl@nginx.com>
date Fri, 02 Oct 2020 12:56:34 +0300
parents eacca87c476e
children 52ad697f9d1c
comparison
equal deleted inserted replaced
8135:eacca87c476e 8136:b38b41127489
904 904
905 if (RAND_bytes(qc->dcid.data, NGX_QUIC_SERVER_CID_LEN) != 1) { 905 if (RAND_bytes(qc->dcid.data, NGX_QUIC_SERVER_CID_LEN) != 1) {
906 return NGX_ERROR; 906 return NGX_ERROR;
907 } 907 }
908 908
909 #ifdef NGX_QUIC_DEBUG_PACKETS
910 ngx_quic_hexdump(c->log, "quic server CID", qc->dcid.data, qc->dcid.len); 909 ngx_quic_hexdump(c->log, "quic server CID", qc->dcid.data, qc->dcid.len);
911 #endif
912 910
913 qc->odcid.len = odcid->len; 911 qc->odcid.len = odcid->len;
914 qc->odcid.data = ngx_pstrdup(c->pool, odcid); 912 qc->odcid.data = ngx_pstrdup(c->pool, odcid);
915 if (qc->odcid.data == NULL) { 913 if (qc->odcid.data == NULL) {
916 return NGX_ERROR; 914 return NGX_ERROR;