Commit 5ef17ac1 authored by Max Kellermann's avatar Max Kellermann

client: don't try again after partial write

After a partial write, chances are vanishing that another write() will succeed. Don't try immediately.
parent b7ee6feb
......@@ -615,6 +615,7 @@ static void client_write_deferred(struct client *client)
client->deferred_bytes -= ret;
buf->size -= ret;
memmove(buf->data, buf->data + ret, buf->size);
break;
} else {
size_t decr = sizeof(*buf) -
sizeof(buf->data) + buf->size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment