diff --git a/src/networking.c b/src/networking.c index 1c0ac7ff5..51c239fc8 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1058,7 +1058,7 @@ int handleClientsWithPendingWrites(void) { { ae_flags |= AE_BARRIER; } - if (aeCreateFileEvent(server.el, c->fd, AE_WRITABLE, + if (aeCreateFileEvent(server.el, c->fd, ae_flags, sendReplyToClient, c) == AE_ERR) { freeClientAsync(c);