Commit 43471144 authored by Andrzej Rybczak's avatar Andrzej Rybczak Committed by Max Kellermann

client: increase send_buf from 4kB to 16kB

this greatly improves performance of commands that return a lot of data, e.g. search results or recursive content of a directory, while being connected to local mpd via tcp/ip socket.
parent 9fb26b56
...@@ -55,7 +55,7 @@ struct client { ...@@ -55,7 +55,7 @@ struct client {
size_t deferred_bytes; /* mem deferred_send consumes */ size_t deferred_bytes; /* mem deferred_send consumes */
unsigned int num; /* client number */ unsigned int num; /* client number */
char send_buf[4096]; char send_buf[16384];
size_t send_buf_used; /* bytes used this instance */ size_t send_buf_used; /* bytes used this instance */
/** is this client waiting for an "idle" response? */ /** is this client waiting for an "idle" response? */
......
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