We don't want to close the connection on EPOLLRDHUP
We'll rely on the errors from reads and writes to close the connections
This commit is contained in:
@@ -313,7 +313,7 @@ void Server::start_network_threads() {
|
||||
conn->tsan_acquire();
|
||||
events[i].data.ptr = nullptr;
|
||||
|
||||
if (events[i].events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) {
|
||||
if (events[i].events & EPOLLERR) {
|
||||
continue; // Connection closed - unique_ptr destructor cleans up
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user