]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUUP: checks: don't set conn->handle.fd to -1
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Oct 2017 05:48:56 +0000 (07:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Oct 2017 05:53:19 +0000 (07:53 +0200)
This used to be needed to know whether there was a check in progress a
long time ago (before tcp_checks) but this is not true anymore and even
becomes wrong after the check is reused as conn_init() initializes it
to DEAD_FD_MAGIC.

src/checks.c

index c2746001dd7ff4a5930acc3c0d679fbf5e7838ca..539d5cc1bda672f5a4071dd2616192215e9801e5 100644 (file)
@@ -2986,8 +2986,6 @@ const char *init_check(struct check *check, int type)
                return "out of memory while allocating check connection";
        }
 
-       check->conn->handle.fd = -1; /* no agent in progress yet */
-
        return NULL;
 }