ircd/authd: use proper timeout values for clients

This commit is contained in:
Elizabeth Myers 2016-03-28 02:32:05 -05:00
parent ef0b13b960
commit 59d42a9fcb

View file

@ -403,8 +403,8 @@ authd_initiate_client(struct Client *client_p)
#endif
client_port = ntohs(((struct sockaddr_in *)&client_p->localClient->ip)->sin_port);
/* FIXME timeout should be configurable */
client_p->preClient->authd_timeout = rb_current_time() + 45;
/* Add a bit of a fudge factor... */
client_p->preClient->authd_timeout = rb_current_time() + ConfigFileEntry.connect_timeout + 5;
rb_helper_write(authd_helper, "C %x %s %hu %s %hu", authd_cid, listen_ipaddr, listen_port, client_ipaddr, client_port);
}