From 39452169e8513dc10fe78264f5aa07715a973234 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 29 Jun 2008 23:47:10 +0200 Subject: [PATCH] Call serv_connect_callback() directly from serv_connect_ssl_callback(). This speeds up outgoing SSL server connections by 1 second. --- src/s_serv.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/s_serv.c b/src/s_serv.c index 7c119957..bd9870bc 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -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); } /*