From: oes Date: Wed, 9 Jan 2002 14:33:27 +0000 (+0000) Subject: Added HOSTENT_BUFFER_SIZE X-Git-Tag: v_2_9_11~57 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=3a7f56e5fef6771bd3645ed465605f89f2a4121a Added HOSTENT_BUFFER_SIZE --- diff --git a/project.h b/project.h index 7daeb045..e5d8e4e6 100644 --- a/project.h +++ b/project.h @@ -1,6 +1,6 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED -#define PROJECT_H_VERSION "$Id: project.h,v 1.43 2001/11/22 21:57:51 jongfoster Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.44 2001/12/30 14:07:32 steudten Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -36,6 +36,14 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.44 2001/12/30 14:07:32 steudten + * - Add signal handling (unix) + * - Add SIGHUP handler (unix) + * - Add creation of pidfile (unix) + * - Add action 'top' in rc file (RH) + * - Add entry 'SIGNALS' to manpage + * - Add exit message to logfile (unix) + * * Revision 1.43 2001/11/22 21:57:51 jongfoster * Making action_spec->flags into an unsigned long rather than just an * unsigned int. @@ -415,6 +423,16 @@ typedef int jb_err; */ #define BUFFER_SIZE 5000 +/* + * Buffer size for capturing struct hostent data in the + * gethostby(name|addr)_r library calls. Since we don't + * loop over gethostbyname_r, the buffer must be sufficient + * to accomodate multiple IN A RRs, as used in DNS round robin + * load balancing. W3C's wwwlib uses 1K, so that should be + * good enough for us, too. + */ +#define HOSTENT_BUFFER_SIZE 1024 + /* * So you can say "while (FOREVER) { ...do something... }" */