Software /
code /
prosody
Changeset
7386:5a9af30d5737
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 Apr 2016 17:32:22 +0200 |
parents | 7382:c8923f882274 (current diff) 7385:17929cdacec2 (diff) |
children | 7388:77a3ef937152 |
files | net/server_event.lua plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Tue Apr 19 17:10:42 2016 +0200 +++ b/net/server_event.lua Tue Apr 19 17:32:22 2016 +0200 @@ -521,6 +521,10 @@ elseif interface.eventreadtimeout then return EV_WRITE, EV_TIMEOUT end + if interface.writebuffer ~= 0 then + -- data possibly written from ondrain + return EV_WRITE, cfg.WRITE_TIMEOUT + end interface.eventwrite = nil return -1 elseif byte and (err == "timeout" or err == "wantwrite") then -- want write again