aboutsummaryrefslogtreecommitdiffstats
path: root/lib/http_client.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-11-24 19:20:57 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2012-11-24 19:20:57 +0000
commit5f2f72849ec0713d65b709e6962aeaac25aa89c7 (patch)
tree81f5c3dbabf3ca96583fa10e77e80c885e2a87ca /lib/http_client.c
parentf26d9a3e54a89b640902d6ffad4f3d32b76dc97e (diff)
Increasing http_client buffersize to 4KB. You'd think that with things like
MTU in mind it's not a very useful change, but I seem to be getting data in bigger chunks most of the time. Likely because with SSL you have record (?) boundaries and compression. This should reduce I/O overhead just a little bit.
Diffstat (limited to 'lib/http_client.c')
-rw-r--r--lib/http_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_client.c b/lib/http_client.c
index 793c5cc1..35d8081f 100644
--- a/lib/http_client.c
+++ b/lib/http_client.c
@@ -197,7 +197,7 @@ static gboolean http_handle_headers( struct http_request *req );
static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond )
{
struct http_request *req = data;
- char buffer[2048];
+ char buffer[4096];
char *s;
size_t content_length;
int st;