aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 18:20:39 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 18:20:39 +0200
commitd19a9467c241e7192a5c5ee36e6114d4fc6d6274 (patch)
treea61e0d1820243e10f0e0497b2cc1c8c78c37f780 /net
parentef944ea3193770dd5ca7b0e0172c2757695ed591 (diff)
downloadprosody-d19a9467c241e7192a5c5ee36e6114d4fc6d6274.tar.gz
prosody-d19a9467c241e7192a5c5ee36e6114d4fc6d6274.zip
net.server_event: Return the correct value as timeout
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 9da2e910..59bd269a 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -549,7 +549,7 @@ do
-- data possibly written from ondrain
return EV_WRITE, cfg.WRITE_TIMEOUT
elseif interface.eventreadtimeout then
- return EV_WRITE, EV_TIMEOUT
+ return EV_WRITE, cfg.WRITE_TIMEOUT
end
interface.eventwrite = nil
return -1