diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-05 18:10:12 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-05 18:10:12 +0200 |
commit | 85a40d85b6ab3f7675ad9816cee402534afe29a9 (patch) | |
tree | d858eb410bad6deda7c2ccc3e66ef9b81045455b /net/server_epoll.lua | |
parent | 70f9952d374d1882c1116b48be66930b1d1d75ff (diff) | |
download | prosody-85a40d85b6ab3f7675ad9816cee402534afe29a9.tar.gz prosody-85a40d85b6ab3f7675ad9816cee402534afe29a9.zip |
net.server_epoll: Log size of partial writes (debug)
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 62db6c86..991383ec 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -420,6 +420,7 @@ function interface:onwritable() self:ondrain(); -- Be aware of writes in ondrain return; elseif partial then + self:debug("Sent %d out of %d buffered bytes", partial, #data); buffer[1] = data:sub(partial+1); for i = #buffer, 2, -1 do buffer[i] = nil; |