]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: checks: don't call conn_cond_update_polling() anymore
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:11:06 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:11:06 +0000 (11:11 +0100)
This was a leftover of the pre-mux v1.8-dev3 era. It makes no sense anymore
to try to disable polling on a connection we don't own, it's the mux's job
and it's properly done upon shutdowns and closes.

src/check.c

index c625b904373f273d9c1bb74df595c0f2751acf2f..51ae99ebfcbe742f6032d44b20726a9cf8958091 100644 (file)
@@ -812,12 +812,6 @@ static int wake_srv_chk(struct conn_stream *cs)
        else
                HA_SPIN_UNLOCK(EMAIL_ALERTS_LOCK, &q->lock);
 
-       /* if a connection got replaced, we must absolutely prevent the connection
-        * handler from touching its fd, and perform the FD polling updates ourselves
-        */
-       if (ret < 0)
-               conn_cond_update_polling(conn);
-
        return ret;
 }