comparison src/event/quic/ngx_event_quic_connid.c @ 8997:fab36e4abf83 quic

QUIC: got rid of hash symbol in backup and logging. Now all objectes with sequence number (i.e. sockets, connection ids and paths) are logged as "foo seq:N".
author Vladimir Homutov <vl@nginx.com>
date Fri, 28 Jan 2022 14:57:33 +0300
parents 1e2f4e9c8195
children
comparison
equal deleted inserted replaced
8996:430755fcdb61 8997:fab36e4abf83
306 if (seqnum > qc->client_seqnum) { 306 if (seqnum > qc->client_seqnum) {
307 qc->client_seqnum = seqnum; 307 qc->client_seqnum = seqnum;
308 } 308 }
309 309
310 ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0, 310 ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0,
311 "quic cid #%uL received id:%uz:%xV:%*xs", 311 "quic cid seq:%uL received id:%uz:%xV:%*xs",
312 cid->seqnum, id->len, id, 312 cid->seqnum, id->len, id,
313 (size_t) NGX_QUIC_SR_TOKEN_LEN, cid->sr_token); 313 (size_t) NGX_QUIC_SR_TOKEN_LEN, cid->sr_token);
314 314
315 return cid; 315 return cid;
316 } 316 }
386 if (qsock == NULL) { 386 if (qsock == NULL) {
387 return NGX_OK; 387 return NGX_OK;
388 } 388 }
389 389
390 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 390 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
391 "quic socket #%uL is retired", qsock->sid.seqnum); 391 "quic socket seq:%uL is retired", qsock->sid.seqnum);
392 392
393 ngx_quic_close_socket(c, qsock); 393 ngx_quic_close_socket(c, qsock);
394 394
395 /* restore socket count up to a limit after deletion */ 395 /* restore socket count up to a limit after deletion */
396 if (ngx_quic_create_sockets(c) != NGX_OK) { 396 if (ngx_quic_create_sockets(c) != NGX_OK) {