Skip to content
Snippets Groups Projects
Commit bd32cf26 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

socket: fix a regression I introduced when optimizing sockets + timeout

parent 86c04c8d
No related branches found
No related tags found
No related merge requests found
......@@ -713,6 +713,7 @@ socket_methods.write = function(self, octets, timeout)
if not errno_is_transient[self:errno()] then
return false
end
written = 0
end
if written == string.len(octets) then
......
......@@ -1004,7 +1004,7 @@ local remote_methods = {
-- packet on the receiving end, and close the connection.
-- Every second sockets we iterate the while loop
-- and check the connection state
self.s:writable(1)
while self.s:writable(1) == 0 do end
else
table.insert(self.wbuf, s)
self:_fatal(errno.strerror(errno()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment