mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
net.server_select, net.server_event: Remove set_mode() call from server.link()... it can cause the last chunk of data to be discarded if shorter than buffersize (thanks to Zash for the debugging)
This commit is contained in:
parent
a29ced4e87
commit
c3d3544fb0
2 changed files with 0 additions and 2 deletions
|
@ -844,7 +844,6 @@ function hook_signal(signal_num, handler)
|
|||
end
|
||||
|
||||
local function link(sender, receiver, buffersize)
|
||||
sender:set_mode(buffersize);
|
||||
local sender_locked;
|
||||
|
||||
function receiver:ondrain()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue