diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-19 18:23:02 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-19 18:23:02 +0200 |
commit | 5133e1cf8997e8a396dd335c4b93ab3d6612e733 (patch) | |
tree | 5a75386f70ffd46bb5a5355f83af4749ca8134fb /net/server_event.lua | |
parent | ad3f7a961c28540805a905993b265ff3d9e0e292 (diff) | |
parent | 2ba51125520664a26eec48325f1b3b041359bb24 (diff) | |
download | prosody-5133e1cf8997e8a396dd335c4b93ab3d6612e733.tar.gz prosody-5133e1cf8997e8a396dd335c4b93ab3d6612e733.zip |
Merge 0.9->0.10
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index a67d5afb..5fd49d0a 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 |