#ifdef HAVE_TIMES
struct tms times;
#endif
- char client[40]; /* Keep 'em small... but large enough to hold an IPv6 address */
+ char client[32]; /* DEPRECATED: Keep 'em small... */
char request[64]; /* We just want an idea... */
char vhost[32]; /* What virtual host is being accessed? */
char protocol[16]; /* What protocol is used on the connection? */
+ char client64[64];
+ apr_time_t duration;
};
typedef struct {
* should still be serving requests.
*/
apr_time_t restart_time;
+#ifdef HAVE_TIMES
+ struct tms times;
+#endif
} global_score;
/* stuff which the parent generally writes and the children rarely read */
apr_uint32_t lingering_close; /* async connections in lingering close */
apr_uint32_t keep_alive; /* async connections in keep alive */
apr_uint32_t suspended; /* connections suspended by some module */
- int bucket; /* Listener bucket used by this child */
};
/* Scoreboard is now in 'local' memory, since it isn't updated once created,
AP_DECLARE(void) ap_create_sb_handle(ap_sb_handle_t **new_sbh, apr_pool_t *p,
int child_num, int thread_num);
+AP_DECLARE(void) ap_update_sb_handle(ap_sb_handle_t *sbh,
+ int child_num, int thread_num);
AP_DECLARE(int) ap_find_child_by_pid(apr_proc_t *pid);
AP_DECLARE(int) ap_update_child_status(ap_sb_handle_t *sbh, int status, request_rec *r);
AP_DECLARE(void) ap_time_process_request(ap_sb_handle_t *sbh, int status);
+AP_DECLARE(int) ap_update_global_status(void);
+
AP_DECLARE(worker_score *) ap_get_scoreboard_worker(ap_sb_handle_t *sbh);
/** Return a pointer to the worker_score for a given child, thread pair.