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