mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-09 06:46:55 +00:00
[BUG] don't set an expiration date directly from now_ms
now_ms can be zero, don't set ->analyse_exp directly from it, we must use tick_add() instead.
This commit is contained in:
parent
d06e71179a
commit
2ab85e6fee
@ -2313,7 +2313,7 @@ int http_process_request(struct session *s, struct buffer *req)
|
||||
req->analysers |= AN_REQ_HTTP_TARPIT;
|
||||
req->analyse_exp = tick_add_ifset(now_ms, s->be->timeout.tarpit);
|
||||
if (!req->analyse_exp)
|
||||
req->analyse_exp = now_ms;
|
||||
req->analyse_exp = tick_add(now_ms, 0);
|
||||
}
|
||||
|
||||
/* OK let's go on with the BODY now */
|
||||
|
Loading…
Reference in New Issue
Block a user