# HG changeset patch # User Matthew Wild # Date 1259807409 0 # Node ID ecbd68fc46dbdbe655d3e81c1c5fd5f63a3fce4e # Parent 2dc9bbf254477b8b34f35df8b2ffc0fb37b4193b net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend diff -r 2dc9bbf25447 -r ecbd68fc46db net/server_event.lua --- a/net/server_event.lua Thu Dec 03 02:28:34 2009 +0000 +++ b/net/server_event.lua Thu Dec 03 02:30:09 2009 +0000 @@ -572,6 +572,7 @@ interface.eventread = nil return -1 end + interface.onincoming( interface, buffer, err ) -- send new data to listener if err and ( err ~= "timeout" and err ~= "wantread" ) then if "wantwrite" == err then -- need to read on write event if not interface.eventwrite then -- register new write event if needed @@ -592,7 +593,6 @@ return -1 end end - interface.onincoming( interface, buffer, err ) -- send new data to listener return EV_READ, cfg.READ_TIMEOUT end end