From 93db86a7e026645007e37f23725546612e4de5c8 Mon Sep 17 00:00:00 2001 From: Mike Kaplinskiy Date: Tue, 27 Jul 2010 00:16:24 -0400 Subject: [PATCH] server: Don't delay events, we simply shouldn't send them in the first place. --- server/sock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/sock.c b/server/sock.c index 36f6c7a4833..44422ad45c4 100644 --- a/server/sock.c +++ b/server/sock.c @@ -260,9 +260,7 @@ static void sock_wake_up( struct sock *sock ) unsigned int events = sock->pmask & sock->mask; int i; - /* Do not signal events if there are still pending asynchronous IO requests */ - /* We need this to delay FD_CLOSE events until all pending overlapped requests are processed */ - if ( !events || async_queued( sock->read_q ) || async_queued( sock->write_q ) ) return; + if ( !events ) return; if (sock->event) {