Fix broken pipe bug in client
This commit is contained in:
@@ -732,10 +732,10 @@ int main(int argc, char *argv[]) {
|
|||||||
perror("shutdown");
|
perror("shutdown");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
event.events = EPOLLIN | EPOLLONESHOT | EPOLLRDHUP;
|
event.events = EPOLLIN | EPOLLONESHOT;
|
||||||
} else {
|
} else {
|
||||||
// Partial write, need to continue writing
|
event.events =
|
||||||
event.events = EPOLLOUT | EPOLLONESHOT | EPOLLRDHUP;
|
(conn->hasMessages() ? EPOLLOUT : EPOLLIN) | EPOLLONESHOT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to epoll for network threads to handle remaining I/O
|
// Add to epoll for network threads to handle remaining I/O
|
||||||
|
|||||||
Reference in New Issue
Block a user