From 5f2f72849ec0713d65b709e6962aeaac25aa89c7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 24 Nov 2012 19:20:57 +0000 Subject: 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. --- lib/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http_client.c') 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; -- cgit v1.2.3