Commit Diff


commit - 41e288ac19dc1ed47e4e0b2260ebc96a8e0dc2f4
commit + caa6cf11e1afc94b38d5250e9b6fe574a6e5ca80
blob - c9d6674b176396bf493ab34d2424fc7ab8c0abcc
blob + d071fb994783827aad7f9d55c28f54ecdbbf0f0d
--- gotd/session_read.c
+++ gotd/session_read.c
@@ -698,6 +698,7 @@ recv_connect(struct imsg *imsg)
 	    session_dispatch_client, &client->iev);
 	gotd_imsg_event_add(&client->iev);
 	evtimer_set(&client->tmo, gotd_request_timeout, client);
+	evtimer_add(&client->tmo, &gotd_session.request_timeout);
 
 	return NULL;
 }
blob - a1ce5abba50c7b583e023be8662bf58bce4a016f
blob + 8850e663c363b4c147aa3f5eb675c2035105f7ab
--- gotd/session_write.c
+++ gotd/session_write.c
@@ -1414,6 +1414,7 @@ recv_connect(struct imsg *imsg)
 	    session_dispatch_client, &client->iev);
 	gotd_imsg_event_add(&client->iev);
 	evtimer_set(&client->tmo, gotd_request_timeout, client);
+	evtimer_add(&client->tmo, &gotd_session.request_timeout);
 
 	return NULL;
 }