diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 01:07:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 01:07:16 +0200 |
commit | 44c3a54cf0d0f65627a5993a129b324107f9fc58 (patch) | |
tree | 857441cf5d7f4da02a09f608ee183300b3c8d676 /src/libmpdclient.h | |
parent | 96683ca4d3611e7c25364a1dbf326435727757d2 (diff) | |
download | mpd-44c3a54cf0d0f65627a5993a129b324107f9fc58.tar.gz mpd-44c3a54cf0d0f65627a5993a129b324107f9fc58.tar.xz mpd-44c3a54cf0d0f65627a5993a129b324107f9fc58.zip |
libmpdclient: smaller input buffer
Even for large responses, 16kB should be enough. There is no
performance gain for larger buffers, even if MPD is local.
Diffstat (limited to '')
-rw-r--r-- | src/libmpdclient.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libmpdclient.h b/src/libmpdclient.h index c4a22b2d8..792894476 100644 --- a/src/libmpdclient.h +++ b/src/libmpdclient.h @@ -42,7 +42,6 @@ #include <sys/time.h> #include <stddef.h> -#define MPD_BUFFER_MAX_LENGTH 50000 #define MPD_WELCOME_MESSAGE "OK MPD " #define MPD_ERROR_TIMEOUT 10 /* timeout trying to talk to mpd */ @@ -117,7 +116,7 @@ typedef struct _mpd_Connection { int error; /* DON'T TOUCH any of the rest of this stuff */ int sock; - char buffer[MPD_BUFFER_MAX_LENGTH+1]; + char buffer[16384]; size_t buflen; size_t bufstart; int doneProcessing; |