CLEANUP: listener: remove the unused handler field

Historically listeners used to have a handler depending on the upper
layer. But now it's exclusively process_stream() and nothing uses it
anymore so it can safely be removed.
This commit is contained in:
Willy Tarreau 2017-08-28 16:28:47 +02:00
parent 87787acf72
commit ca3610251b
3 changed files with 0 additions and 4 deletions

View File

@ -190,7 +190,6 @@ struct listener {
unsigned int maxaccept; /* if set, max number of connections accepted at once */
struct list proto_list; /* list in the protocol header */
int (*accept)(struct listener *l, int fd, struct sockaddr_storage *addr); /* upper layer's accept() */
struct task * (*handler)(struct task *t); /* protocol handler. It is a task */
enum obj_type *default_target; /* default target to use for accepted sessions or NULL */
struct list wait_queue; /* link element to make the listener wait for something (LI_LIMITED) */
unsigned int analysers; /* bitmap of required protocol analysers */

View File

@ -2075,7 +2075,6 @@ int cfg_parse_peers(const char *file, int linenum, char **args, int kwm)
l->maxconn = curpeers->peers_fe->maxconn;
l->backlog = curpeers->peers_fe->backlog;
l->accept = session_accept_fd;
l->handler = process_stream;
l->analysers |= curpeers->peers_fe->fe_req_ana;
l->default_target = curpeers->peers_fe->default_target;
l->options |= LI_O_UNLIMITED; /* don't make the peers subject to global limits */
@ -9039,7 +9038,6 @@ out_uri_auth_compat:
}
listener->accept = session_accept_fd;
listener->handler = process_stream;
listener->analysers |= curproxy->fe_req_ana;
listener->default_target = curproxy->default_target;

View File

@ -269,7 +269,6 @@ static int stats_parse_global(char **args, int section_type, struct proxy *curpx
l->maxconn = global.stats_fe->maxconn;
l->backlog = global.stats_fe->backlog;
l->accept = session_accept_fd;
l->handler = process_stream;
l->default_target = global.stats_fe->default_target;
l->options |= LI_O_UNLIMITED; /* don't make the peers subject to global limits */
l->nice = -64; /* we want to boost priority for local stats */