From: Fabian Keil Date: Wed, 20 Sep 2006 15:50:31 +0000 (+0000) Subject: Doubled size of HOSTENT_BUFFER_SIZE to mask X-Git-Tag: v_3_0_5~26 X-Git-Url: http://www.privoxy.org/gitweb/eas?a=commitdiff_plain;h=e1b727ca312e14555c99321ec7e48536e461c93a;p=privoxy.git Doubled size of HOSTENT_BUFFER_SIZE to mask problems with gethostbyname_r and some /etc/hosts configurations. Only a workaround until we get the real fix ready. Thanks FĂ©lix Rauch for reporting. Increased value of MAX_TRUSTED_REFERRERS from 64 to 512. --- diff --git a/project.h b/project.h index d7f888cb..4bf92a17 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.80 2006/09/06 10:43:32 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.81 2006/09/06 13:03:04 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -37,6 +37,10 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.81 2006/09/06 13:03:04 fabiankeil + * Respond with 400 and a short text message + * if the client tries to use Privoxy as FTP proxy. + * * Revision 1.80 2006/09/06 10:43:32 fabiankeil * Added config option enable-remote-http-toggle * to specify if Privoxy should recognize special @@ -653,7 +657,12 @@ typedef int jb_err; * load balancing. W3C's wwwlib uses 1K, so that should be * good enough for us, too. */ -#define HOSTENT_BUFFER_SIZE 1024 +/** + * XXX: Temporary doubled, for some configurations + * 1K is still too small and we didn't get the + * real fix ready for inclusion. + */ +#define HOSTENT_BUFFER_SIZE 2048 /** * Do not use. Originally this was so that you can @@ -1300,7 +1309,7 @@ struct block_spec * Arbitrary limit for the number of trusted referrers * Privoxy can print in its blocking message. */ -#define MAX_TRUSTED_REFERRERS 64 +#define MAX_TRUSTED_REFERRERS 512 #endif /* def FEATURE_TRUST */