]> jfr.im git - solanum.git/commitdiff
Call serv_connect_callback() directly from serv_connect_ssl_callback().
authorJilles Tjoelker <redacted>
Sun, 29 Jun 2008 21:47:10 +0000 (23:47 +0200)
committerJilles Tjoelker <redacted>
Sun, 29 Jun 2008 21:47:10 +0000 (23:47 +0200)
This speeds up outgoing SSL server connections by 1 second.

src/s_serv.c

index 7c1199579b2d2b64c93f2423fbfa00b56a506b9a..bd9870bc3ec9a44270d45d0ad9d66bf77cc3085a 100644 (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);
 }
 
 /*