Fix epoll_ctl() error message on connection error

pull/3389/head
Marco Slot 2020-01-11 08:25:50 +01:00
parent 89d5bed88d
commit 82f1fffa28
1 changed files with 2 additions and 2 deletions

View File

@ -2294,8 +2294,8 @@ ManageWorkerPool(WorkerPool *workerPool)
/* create a session for the connection */
WorkerSession *session = FindOrCreateWorkerSession(workerPool, connection);
/* always poll the connection in the first round */
UpdateConnectionWaitFlags(session, WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE);
/* immediately run the state machine to handle potential failure */
ConnectionStateMachine(session);
}
workerPool->lastConnectionOpenTime = GetCurrentTimestamp();