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:
@@ -547,8 +547,7 @@ int main(int argc, char *argv[]) {
|
||||
events[i].data.ptr = nullptr;
|
||||
const int fd = conn->fd;
|
||||
|
||||
// Handle connection errors like server
|
||||
if (events[i].events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) {
|
||||
if (events[i].events & EPOLLERR) {
|
||||
continue; // Let unique_ptr destructor clean up
|
||||
}
|
||||
if (events[i].events & EPOLLOUT) {
|
||||
|
||||
Reference in New Issue
Block a user