Revision 1.3 |
Revision 1.8 |
Line 15 |
Line 15 |
#include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */  
|
#include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */  
|
|
#include <netinet/tcp.h> /* for turning off Nagle's algorithm */
|
#include <arpa/inet.h> #include <signal.h> #include <netdb.h>
|
#include <arpa/inet.h> #include <signal.h> #include <netdb.h>
|
Line 25 |
Line 27 |
#include <sys/time.h> #endif /* HAVE_SYS_TIME_H */
|
#include <sys/time.h> #endif /* HAVE_SYS_TIME_H */
|
|
#include <assert.h>
|
#include <pth.h>
|
#include <pth.h>
|
|
#ifdef HAVE_LIBDMALLOC
#include "dmalloc.h"
#endif
|
#include "config.h" #include "cow_config.h"
|
#include "config.h" #include "cow_config.h"
|
void fixup_server_root();
|
#include "response.h"
#include "pmsg.h"
|
extern int cow_nohands; /* total number of hands */ extern int cow_nohands_running; /* current number of handlers running */ extern unsigned long cow_max_conn; /* max simultaneous connections */ extern unsigned long cow_cur_conn; /* current simultaneous connection */
|
extern int cow_nohands; /* total number of hands */ extern int cow_nohands_running; /* current number of handlers running */ extern unsigned long cow_max_conn; /* max simultaneous connections */ extern unsigned long cow_cur_conn; /* current simultaneous connection */
|
|
extern unsigned long cow_tot_parsed; /* total connections completely parsed */
extern unsigned long cow_tot_served; /* total connections completely served */
extern int zero, one; /* used by setsockopt calls */
extern int server_root_len; /* string length of server root */
/* pool of pmsg structures */
extern reqnode *pmsgpool, *pmsgpool_first;
|
extern pth_barrier_t init_bar; /* initialization barrier structure */ extern pth_t tid_depot; /* depot's thread id */ #endif /* _COW_H_ */
|
extern pth_barrier_t init_bar; /* initialization barrier structure */ extern pth_t tid_depot; /* depot's thread id */ #endif /* _COW_H_ */
|