mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 07:28:13 +08:00
Ignore "non-errors" when sending
h/t @f00bard PUBLISHED_FROM=5deab05502797bb6393e8dbbd5684aba4a72a799
This commit is contained in:
parent
c85edc38aa
commit
55398684cc
@ -3313,6 +3313,7 @@ static void mg_write_to_socket(struct mg_connection *nc) {
|
|||||||
{
|
{
|
||||||
n = (int) MG_SEND_FUNC(nc->sock, io->buf, io->len, 0);
|
n = (int) MG_SEND_FUNC(nc->sock, io->buf, io->len, 0);
|
||||||
DBG(("%p %d bytes -> %d", nc, n, nc->sock));
|
DBG(("%p %d bytes -> %d", nc, n, nc->sock));
|
||||||
|
if (n < 0 && !mg_is_error(n)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user