[MEDIUM] session: initialize server-side timeouts after connect()
It was particularly embarrassing that the server timeout was assigned
to buffers during an accept() just to be potentially changed later in
case of a use_backend rule. The frontend side has nothing to do with
server timeouts.
Now we initialize them right after the connect() succeeds. Later this
should change for a unique stream-interface timeout setting only.
diff --git a/src/proto_http.c b/src/proto_http.c
index b533c2d..a1ff02c 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -6746,9 +6746,9 @@
}
s->req->rto = s->fe->timeout.client;
- s->req->wto = s->be->timeout.server;
+ s->req->wto = TICK_ETERNITY;
- s->rep->rto = s->be->timeout.server;
+ s->rep->rto = TICK_ETERNITY;
s->rep->wto = s->fe->timeout.client;
s->req->rex = TICK_ETERNITY;