mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
Use the newly accepted FD in TCP code.
This commit is contained in:
@@ -3072,10 +3072,10 @@ internal_accept(isc__socket_t *sock) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOCK(&nthread->fdlock[lockid]);
|
LOCK(&nthread->fdlock[lockid]);
|
||||||
thread->fds[fd] = NEWCONNSOCK(dev);
|
nthread->fds[fd] = NEWCONNSOCK(dev);
|
||||||
thread->fdstate[fd] = MANAGED;
|
nthread->fdstate[fd] = MANAGED;
|
||||||
#if defined(USE_EPOLL)
|
#if defined(USE_EPOLL)
|
||||||
thread->epoll_events[fd] = 0;
|
nthread->epoll_events[fd] = 0;
|
||||||
#endif
|
#endif
|
||||||
UNLOCK(&nthread->fdlock[lockid]);
|
UNLOCK(&nthread->fdlock[lockid]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user