diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-03 02:30:09 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-03 02:30:09 +0000 |
commit | 1ecc27bdcae8e97141740f26842fc8c85e97221f (patch) | |
tree | 0ca7dbeaf00b8bd41ec416d9b04320ff6a2c17ef /net | |
parent | 99e33affa47209fda58125a474e8617a2d981d7c (diff) | |
download | prosody-1ecc27bdcae8e97141740f26842fc8c85e97221f.tar.gz prosody-1ecc27bdcae8e97141740f26842fc8c85e97221f.zip |
net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 450bd341..99e972d7 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -572,6 +572,7 @@ do 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 @@ do return -1
end
end
- interface.onincoming( interface, buffer, err ) -- send new data to listener
return EV_READ, cfg.READ_TIMEOUT
end
end
|