Software /
code /
prosody
Changeset
7589:125e4f2e0b65
net.server_epoll: Return early on successful write
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2016 16:06:18 +0200 |
parents | 7588:fd6ca110edce |
children | 7590:fd07ab702f83 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Aug 18 16:05:18 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 18 16:06:18 2016 +0200 @@ -289,6 +289,7 @@ 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