diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 16:06:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 16:06:18 +0200 |
commit | 859c2b7a13544a77a9373c3c92d4f869b2b96fea (patch) | |
tree | 3ba9ef9bb03d10370e0bc6ae9f3dc8a454298513 /net/server_epoll.lua | |
parent | 97bb48b578078377edb640a42284b73f456be1f5 (diff) | |
download | prosody-859c2b7a13544a77a9373c3c92d4f869b2b96fea.tar.gz prosody-859c2b7a13544a77a9373c3c92d4f869b2b96fea.zip |
net.server_epoll: Return early on successful write
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index b2df6188..a6716cd9 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -289,6 +289,7 @@ function interface:onwriteable() self:setflags(nil, false); self:setwritetimeout(false); self:ondrain(); -- Be aware of writes in ondrain + return; elseif partial then buffer[1] = data:sub(partial+1) for i = #buffer, 2, -1 do |