Search squid archive

Re: Squid network read()'s only 2k long?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 02, 2010 at 01:14:56AM +0000, Amos Jeffries wrote:
> Hmm. I think I've tracked this down. It appears to be MemBuf::init()
> defaulting to 2KB of buffer. The default is defined in src/Membuf.cc.
> Though I'm unsure why an exponential grow() is not triggered to make that
> third read 4K.
> 
> If you can confirm that I'll work on making that config setting affect the
> buffer initial values for the future.

I have hacked in : 
--- src/http.cc~        Tue Nov  2 00:47:36 2010
+++ src/http.cc Tue Nov  2 00:47:36 2010
@@ -88,1 +88,1 @@
-    readBuf->init();
+    readBuf->init(64*1024,2*1000*1024*1024);

And I am now getting 64Kb reads from the remote. Huzzah!

I forgot to mention, compat/os/opensolaris_10_netdb.h (referenced by
compat/os/solaris.h) seemed to be missing from 3.1.9 (part of the Sol9
addrinfo fix).

DeclanW


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux