Call serv_connect_callback() directly from serv_connect_ssl_callback().
This speeds up outgoing SSL server connections by 1 second.
This commit is contained in:
parent
9ec5132680
commit
39452169e8
1 changed files with 1 additions and 8 deletions
|
@ -1178,13 +1178,6 @@ serv_connect(struct server_conf *server_p, struct Client *by)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
serv_connect_ev(void *data)
|
||||
{
|
||||
struct Client *client_p = data;
|
||||
serv_connect_callback(client_p->localClient->F, RB_OK, client_p);
|
||||
}
|
||||
|
||||
static void
|
||||
serv_connect_ssl_callback(rb_fde_t *F, int status, void *data)
|
||||
{
|
||||
|
@ -1204,7 +1197,7 @@ serv_connect_ssl_callback(rb_fde_t *F, int status, void *data)
|
|||
|
||||
client_p->localClient->ssl_ctl = start_ssld_connect(F, xF[1], rb_get_fd(xF[0]));
|
||||
SetSSL(client_p);
|
||||
rb_event_addonce("serv_connect_ev", serv_connect_ev, client_p, 1);
|
||||
serv_connect_callback(client_p->localClient->F, RB_OK, client_p);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue