]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp: don't try to set defaultmss when value is negative
authorWilliam Dauchy <w.dauchy@criteo.com>
Wed, 12 Feb 2020 14:53:04 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Feb 2020 15:01:50 +0000 (16:01 +0100)
commit97a7bdac3e9e64e9f128943ee3d7b48de88a7daf
treecfb2e61a48f3da98bd0ae0b947466077a00f2aee
parent47e09dd034d5d49e0d158b5a352702f270f1958e
BUG/MINOR: tcp: don't try to set defaultmss when value is negative

when `getsockopt` previously failed, we were trying to set defaultmss
with -2 value.

this is a followup of github issue #499

this should be backported to all versions >= v1.8

Fixes: 153659f1ae69a1 ("MINOR: tcp: When binding socket, attempt to
reuse one from the old proc.")
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/proto_tcp.c