diff --git a/src/networking.c b/src/networking.c index 9d4c94d2..9a69f0fb 100644 --- a/src/networking.c +++ b/src/networking.c @@ -177,7 +177,7 @@ int prepareClientToWrite(client *c) { * a system call. We'll only really install the write handler if * we'll not be able to write the whole reply at once. */ c->flags |= CLIENT_PENDING_WRITE; - listAddNodeTail(server.clients_pending_write,c); + listAddNodeHead(server.clients_pending_write,c); } /* Authorize the caller to queue in the output buffer of this client. */