mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
Well this was thought provoking.
Drive out the use of malloc in two places. In listen.c, using the global process pool instead. That changes the API into listen so that a process is passed in rather than the config pool. That's all was easy. The pain is propogating a change into all N of the mpm, they are all similar but different in their use of listen.c There is a lot to dislike about similar but code scattered code. I changed the N setup_listener routines, they now take only the server since they can dig the config and global pool out of there. Free today: ap_setup_prelinked_modules now takes the process so it can allocate it's table in the process's pool rathern than use malloc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83943 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -71,7 +71,7 @@ struct ap_listen_rec {
|
||||
ap_listen_rec *ap_listeners;
|
||||
|
||||
void ap_listen_pre_config(void);
|
||||
int ap_listen_open(ap_context_t *pconf, unsigned port);
|
||||
int ap_listen_open(process_rec *process, unsigned port);
|
||||
const char *ap_set_listenbacklog(cmd_parms *cmd, void *dummy, char *arg);
|
||||
const char *ap_set_listener(cmd_parms *cmd, void *dummy, char *ips);
|
||||
const char *ap_set_send_buffer_size(cmd_parms *cmd, void *dummy, char *arg);
|
||||
|
Reference in New Issue
Block a user