comparison src/event/quic/ngx_event_quic_socket.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 a2fbae359828
comparison
equal deleted inserted replaced
8996:430755fcdb61 8997:fab36e4abf83
158 158
159 ngx_rbtree_delete(&c->listening->rbtree, &qsock->udp.node); 159 ngx_rbtree_delete(&c->listening->rbtree, &qsock->udp.node);
160 qc->nsockets--; 160 qc->nsockets--;
161 161
162 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, 162 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
163 "quic socket #%L closed nsock:%ui", 163 "quic socket seq:%L closed nsock:%ui",
164 (int64_t) qsock->sid.seqnum, qc->nsockets); 164 (int64_t) qsock->sid.seqnum, qc->nsockets);
165 } 165 }
166 166
167 167
168 ngx_int_t 168 ngx_int_t
183 183
184 qc->nsockets++; 184 qc->nsockets++;
185 qsock->quic = qc; 185 qsock->quic = qc;
186 186
187 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0, 187 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
188 "quic socket #%L listening at sid:%xV nsock:%ui", 188 "quic socket seq:%L listening at sid:%xV nsock:%ui",
189 (int64_t) sid->seqnum, &id, qc->nsockets); 189 (int64_t) sid->seqnum, &id, qc->nsockets);
190 190
191 return NGX_OK; 191 return NGX_OK;
192 } 192 }
193 193