mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
lock dispatch before reporting state
This commit is contained in:
parent
caf073dbe7
commit
3075445ed6
@ -1334,12 +1334,12 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
|
||||
|
||||
qid = disp->qid;
|
||||
|
||||
LOCK(&disp->lock);
|
||||
|
||||
dispatch_log(disp, LVL(90),
|
||||
"got TCP packet: requests %d, buffers %d, recvs %d",
|
||||
disp->requests, disp->tcpbuffers, disp->recv_pending);
|
||||
|
||||
LOCK(&disp->lock);
|
||||
|
||||
INSIST(disp->recv_pending != 0);
|
||||
disp->recv_pending = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user