diff options
author | Max Kellermann <max@duempel.org> | 2008-10-31 09:19:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-31 09:19:40 +0100 |
commit | 5ef17ac1aa9839208513be67a64fbf78658cf21e (patch) | |
tree | 13513e5990660098fd3d468f062e48c95974550b /src | |
parent | b7ee6febaa4f11fb6f795e0f60f5eba7b668d5ed (diff) | |
download | mpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.tar.gz mpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.tar.xz mpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.zip |
client: don't try again after partial write
After a partial write, chances are vanishing that another write() will
succeed. Don't try immediately.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c index 50f4a1ee8..2a69dd7fb 100644 --- a/src/client.c +++ b/src/client.c @@ -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; |