0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

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:
Jilles Tjoelker 2008-06-29 23:47:10 +02:00
parent 9ec5132680
commit 39452169e8

View file

@ -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);
}
/*