Skip to content
Snippets Groups Projects
Commit ceea66e6 authored by Thomas Bopp's avatar Thomas Bopp Committed by Martin Nilsson
Browse files

Keep alive fix from Thomas Bopp.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike:1.47
parent 134d0622
No related branches found
No related tags found
No related merge requests found
...@@ -723,15 +723,14 @@ void send_write() ...@@ -723,15 +723,14 @@ void send_write()
} }
} }
} }
else if (send_pos==sizeof(send_buf) && !send_fd)
{
finish(sent==send_stop);
return;
}
int n=my_fd->write(send_buf[send_pos..]); int n=my_fd->write(send_buf[send_pos..]);
sent += n; sent += n;
send_pos+=n; send_pos+=n;
if (send_pos==sizeof(send_buf) && !send_fd)
finish(sent==send_stop);
} }
void send_timeout() void send_timeout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment