[core] store struct server * in struct connection

This commit is contained in:
Glenn Strauss 2019-06-21 01:47:56 -04:00
parent 41944e3be8
commit 1334436394
2 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,7 @@ struct connection {
int async_callback;
log_error_st *errh;
server *srv;
void **plugin_ctx; /* plugin connection specific config */

View File

@ -1093,6 +1093,7 @@ connection *connection_accepted(server *srv, server_socket *srv_socket, sock_add
con = connections_get_new_connection(srv);
con->errh = srv->errh;
con->srv = srv;
con->fd = cnt;
con->fdn = fdevent_register(srv->ev, con->fd, connection_handle_fdevent, con);