Software /
code /
prosody
Changeset
7550:8c2bc1b6d84a
net.server_epoll: Remove last traces of code for bypassing buffering on writable sockets
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Aug 2016 20:47:40 +0200 |
parents | 7549:d5f8a56eda4c |
children | 7551:838212918f11 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Wed Aug 10 17:00:10 2016 +0200 +++ b/net/server_epoll.lua Wed Aug 10 20:47:40 2016 +0200 @@ -253,14 +253,12 @@ else self:setwritetimeout(); end - self._writable = true; elseif partial then buffer[1] = data:sub(partial+1) for i = #buffer, 2, -1 do buffer[i] = nil; end self:setwritetimeout(); - self._writable = false; end if err == "wantwrite" or err == "timeout" then self:setflags(nil, true); @@ -290,12 +288,8 @@ else self.writebuffer = { data }; end - if self._writable and false then - self:onwriteable(); - else - self:setwritetimeout(); - self:setflags(nil, true); - end + self:setwritetimeout(); + self:setflags(nil, true); return #data; end interface.send = interface.write;