aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 18:23:44 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 18:23:44 +0200
commitbdae115b95415dc70d009f3afe48e8959957bab5 (patch)
treea73f0e5a8a0c4d19faa2ab9da327b9b5568d1d31 /net
parent87a44cc0836768f3409b90d2be8801272ff643a3 (diff)
parent5133e1cf8997e8a396dd335c4b93ab3d6612e733 (diff)
downloadprosody-bdae115b95415dc70d009f3afe48e8959957bab5.tar.gz
prosody-bdae115b95415dc70d009f3afe48e8959957bab5.zip
Merge 0.10->trunk
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 025e3949..cfe9c6f5 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -518,12 +518,11 @@ local function handleclient( client, ip, port, server, pattern, listener, sslctx
elseif interface.startsslcallback then -- start ssl connection if needed
debug "starting ssl handshake after writing"
interface.eventstarthandshake = addevent( base, nil, EV_TIMEOUT, interface.startsslcallback, 0 )
- elseif interface.eventreadtimeout then
- return EV_WRITE, EV_TIMEOUT
- end
- if interface.writebuffer ~= 0 then
+ elseif interface.writebuffer ~= 0 then
-- data possibly written from ondrain
return EV_WRITE, cfg.WRITE_TIMEOUT
+ elseif interface.eventreadtimeout then
+ return EV_WRITE, cfg.WRITE_TIMEOUT
end
interface.eventwrite = nil
return -1