Author: adrian.chadd
Date: Thu Feb 5 10:59:44 2009
New Revision: 13801
Modified:
branches/LUSCA_HEAD/src/http.c
Log:
Screw the #define stuff for now; hard code in some sensiblish defaults
based on what I've seen, and hopefully avoid realloc()s during
reading the reply headers.
Modified: branches/LUSCA_HEAD/src/http.c
==============================================================================
--- branches/LUSCA_HEAD/src/http.c (original)
+++ branches/LUSCA_HEAD/src/http.c Thu Feb 5 10:59:44 2009
@@ -991,7 +991,7 @@
int clen;
int done = 0;
int already_parsed = 0;
- size_t read_sz = SQUID_TCP_SO_RCVBUF;
+ size_t read_sz = 8192;
int po = 0;
#if DELAY_POOLS
delay_id delay_id;
@@ -1021,7 +1021,7 @@
* (as strings atm need to be contiguous) ..
*/
if (! httpState->read_buf)
- httpState->read_buf = buf_create_size(SQUID_TCP_SO_RCVBUF / 4);
+ httpState->read_buf = buf_create_size(32768);
/* XXX buffer_filled is all busted right now, unfortunately! */
len = buf_read(httpState->read_buf, fd, read_sz);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---