mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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]);
|
||||
thread->fds[fd] = NEWCONNSOCK(dev);
|
||||
thread->fdstate[fd] = MANAGED;
|
||||
nthread->fds[fd] = NEWCONNSOCK(dev);
|
||||
nthread->fdstate[fd] = MANAGED;
|
||||
#if defined(USE_EPOLL)
|
||||
thread->epoll_events[fd] = 0;
|
||||
nthread->epoll_events[fd] = 0;
|
||||
#endif
|
||||
UNLOCK(&nthread->fdlock[lockid]);
|
||||
|
||||
|
Reference in New Issue
Block a user