query_icmp off
DOC_END
+NAME: buffered_logs
+COMMENT: on|off
+TYPE: onoff
+DEFAULT: off
+LOC: Config.Options.buffered_logs
+DOC_START
+ Some log files (cache.log, useragent.log) are written with
+ stdio functions, and as such they can be buffered or
+ unbuffered. By default they will be unbuffered.
+buffered_logs off
+DOC_END
+
NAME: always_direct
TYPE: acl_access
LOC: Config.accessList.AlwaysDirect
/*
- * $Id: debug.cc,v 1.49 1997/07/16 20:32:02 wessels Exp $
+ * $Id: debug.cc,v 1.50 1997/07/21 07:20:56 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
#endif /* HAVE_SYSLOG */
/* write to log file */
vfprintf(debug_log, f, args);
- if (unbuffered_logs)
+ if (!Config.Options.buffered_logs)
fflush(debug_log);
if (opt_debug_stderr && debug_log != stderr)
vfprintf(stderr, f, args);
extern time_t squid_starttime; /* 0 */
extern volatile int reconfigure_pending; /* 0 */
extern volatile int shutdown_pending; /* 0 */
-extern volatile int unbuffered_logs; /* 0 */
extern volatile unsigned long nudpconn; /* 0 */
extern volatile unsigned long ntcpconn; /* 0 */
extern int unlinkd_count; /* 0 */
/*
- * $Id: main.cc,v 1.167 1997/07/19 07:20:02 wessels Exp $
+ * $Id: main.cc,v 1.168 1997/07/21 07:20:58 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
usage(void)
{
fprintf(stderr,
- "Usage: %s [-hsvzCDFRUVY] [-f config-file] [-[au] port] [-k signal]\n"
+ "Usage: %s [-svzCDFRUVY] [-f config-file] [-[au] port] [-k signal]\n"
" -a port Specify ASCII port number (default: %d).\n"
- " -b Buffer log output (default is unbuffered).\n"
" -d Write debugging to stderr also.\n"
" -f file Use given config-file instead of\n"
" %s\n"
case 'a':
httpPortNumOverride = atoi(optarg);
break;
- case 'b':
- unbuffered_logs = 0;
- break;
case 'd':
opt_debug_stderr = 1;
break;
/*
- * $Id: mime.cc,v 1.35 1997/07/19 07:20:03 wessels Exp $
+ * $Id: mime.cc,v 1.36 1997/07/21 07:20:59 wessels Exp $
*
* DEBUG: section 25 MIME Parsing
* AUTHOR: Harvest Derived
storeTimestampsSet(e);
BIT_SET(e->flag, ENTRY_SPECIAL);
debug(25, 1) ("Loaded icon %s\n", url);
+ storeUnlockObject(e);
put_free_4k_page(buf);
}
extern void start_announce _PARAMS((void *unused));
-extern void sslStart _PARAMS((int fd, const char *, request_t *, int *sz));
+extern void sslStart _PARAMS((int fd, const char *, request_t *, size_t *sz));
extern void waisStart _PARAMS((request_t *, StoreEntry *));
extern void storeDirClean _PARAMS((void *unused));
-extern void passStart _PARAMS((int, const char *, request_t *, int *));
+extern void passStart _PARAMS((int, const char *, request_t *, size_t *));
extern void identStart _PARAMS((int, ConnStateData *, IDCB * callback));
extern int httpAnonAllowed _PARAMS((const char *line));
extern int httpAnonDenied _PARAMS((const char *line));
/*
- * $Id: ssl.cc,v 1.58 1997/07/16 20:32:17 wessels Exp $
+ * $Id: ssl.cc,v 1.59 1997/07/21 07:21:01 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
}
void
-sslStart(int fd, const char *url, request_t * request, int *size_ptr)
+sslStart(int fd, const char *url, request_t * request, size_t *size_ptr)
{
/* Create state structure. */
SslStateData *sslState = NULL;
int client_db;
int query_icmp;
int icp_hit_stale;
+ int buffered_logs;
} Options;
struct _acl *aclList;
struct {
int inpipe;
int outpipe;
time_t answer;
- unsigned int offset;
- unsigned int size;
+ off_t offset;
+ size_t size;
char *ip_inbuf;
struct timeval dispatch_time;
void *data;
struct _dwrite_q {
char *buf;
int len;
- int cur_offset;
+ off_t cur_offset;
struct _dwrite_q *next;
void (*free) (void *);
};
char *log_url;
struct {
char *buf;
- int offset;
- int size;
+ off_t offset;
+ size_t size;
} out;
size_t req_sz;
StoreEntry *entry;
int fd;
struct {
char *buf;
- int offset;
- int size;
+ off_t offset;
+ size_t size;
} in;
clientHttpRequest *chr;
struct sockaddr_in peer;
struct _stmem_stats {
int max_pages;
int total_pages_allocated;
- int page_size;
+ size_t page_size;
int n_pages_in_use;
Stack free_page_stack;
};
char *e_abort_msg;
log_type abort_code;
int e_current_len;
- int e_lowest_offset;
+ off_t e_lowest_offset;
struct _store_client *clients;
int nclients;
- u_num32 swap_offset;
+ off_t swap_offset;
short swapin_fd;
short swapout_fd;
struct _http_reply *reply;
/*
- * $Id: tunnel.cc,v 1.58 1997/07/16 20:32:17 wessels Exp $
+ * $Id: tunnel.cc,v 1.59 1997/07/21 07:21:01 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
}
void
-sslStart(int fd, const char *url, request_t * request, int *size_ptr)
+sslStart(int fd, const char *url, request_t * request, size_t *size_ptr)
{
/* Create state structure. */
SslStateData *sslState = NULL;
/*
- * $Id: useragent.cc,v 1.8 1997/07/15 05:34:14 wessels Exp $
+ * $Id: useragent.cc,v 1.9 1997/07/21 07:21:02 wessels Exp $
*
* DEBUG: section 40 User-Agent logging
* AUTHOR: Joe Ramey <ramey@csc.ti.com>
client,
time_str,
agent);
- if (unbuffered_logs)
+ if (!Config.Options.buffered_logs)
fflush(cache_useragent_log);
#endif
}