BUG/MINOR: peers: fix expire learned from a peer not converted from ms to ticks
This is has now impact currently since MS_TO_TICKS macro does nothing but it will prevent further bugs.
This commit is contained in:
parent
6365eb85e5
commit
00461fbfbf
@ -1740,6 +1740,8 @@ static int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt,
|
|||||||
memcpy(&expire, *msg_cur, expire_sz);
|
memcpy(&expire, *msg_cur, expire_sz);
|
||||||
*msg_cur += expire_sz;
|
*msg_cur += expire_sz;
|
||||||
expire = ntohl(expire);
|
expire = ntohl(expire);
|
||||||
|
/* the rest of the code considers expire as ticks and not MS */
|
||||||
|
expire = MS_TO_TICKS(expire);
|
||||||
}
|
}
|
||||||
|
|
||||||
newts = stksess_new(table, NULL);
|
newts = stksess_new(table, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user