Revision: 14310 Author: adrian.chadd Date: Wed Sep 30 20:42:50 2009 Log: Fix issue 68 - make the client_socksize option parse correctly
The option wasn't being parsed correctly and thus socket buffers may be unfortunately far too small. This patch changes it from an int to a squid_off_t, and makes it parsed as a b_size_t, which pays attention to "KB", "MB", etc. http://code.google.com/p/lusca-cache/source/detail?r=14310 Modified: /branches/LUSCA_HEAD/src/cf.data.pre /branches/LUSCA_HEAD/src/structs.h ======================================= --- /branches/LUSCA_HEAD/src/cf.data.pre Tue Sep 8 03:40:58 2009 +++ /branches/LUSCA_HEAD/src/cf.data.pre Wed Sep 30 20:42:50 2009 @@ -5962,7 +5962,7 @@ NAME: client_socksize COMMENT: send/receive buffer socket size for client-side -TYPE: int +TYPE: b_size_t LOC: Config.client_socksize DEFAULT: -1 DOC_START ======================================= --- /branches/LUSCA_HEAD/src/structs.h Tue Sep 8 03:40:58 2009 +++ /branches/LUSCA_HEAD/src/structs.h Wed Sep 30 20:42:50 2009 @@ -833,7 +833,7 @@ } aiops; #endif /* XXX I'm not sure where these should live .. */ - int client_socksize; + squid_off_t client_socksize; }; struct _SquidConfig2 { --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
