I'm not interested in EPOLLRDHUP
This commit is contained in:
@@ -670,9 +670,9 @@ int main(int argc, char *argv[]) {
|
||||
// Transfer back to epoll instance. This thread or another thread
|
||||
// will wake when fd is ready
|
||||
if (conn->hasMessages()) {
|
||||
events[i].events = EPOLLOUT | EPOLLONESHOT | EPOLLRDHUP;
|
||||
events[i].events = EPOLLOUT | EPOLLONESHOT;
|
||||
} else {
|
||||
events[i].events = EPOLLIN | EPOLLONESHOT | EPOLLRDHUP;
|
||||
events[i].events = EPOLLIN | EPOLLONESHOT;
|
||||
}
|
||||
conn->tsan_release();
|
||||
Connection *raw_conn = conn.release();
|
||||
|
||||
Reference in New Issue
Block a user