]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: connection: don't test for CO_FL_WAKE_DATA
authorWilly Tarreau <w@1wt.eu>
Sat, 18 Mar 2017 14:39:57 +0000 (15:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 19 Mar 2017 11:17:35 +0000 (12:17 +0100)
This flag is always set when we end up here, for each and every data
layer (idle, stream-interface, checks), and continuing to test it
leaves a big risk of forgetting to set it as happened once already
before 1.5-dev13.

It could make sense to backport this into stable branches as part of
the connection flag fixes, after some cool down period.

src/connection.c

index ba9b67545b775637371360dcb46f6d03a0fdc48a..c23f464d3bbf6ee0b64f39d273239209fde92bd8 100644 (file)
@@ -152,8 +152,7 @@ void conn_fd_handler(int fd)
         * Note that the wake callback is allowed to release the connection and
         * the fd (and return < 0 in this case).
         */
-       if ((conn->flags & CO_FL_WAKE_DATA) &&
-           (((conn->flags ^ flags) & CO_FL_NOTIFY_DATA) ||
+       if ((((conn->flags ^ flags) & CO_FL_NOTIFY_DATA) ||
             ((flags & (CO_FL_CONNECTED|CO_FL_HANDSHAKE)) != CO_FL_CONNECTED &&
              (conn->flags & (CO_FL_CONNECTED|CO_FL_HANDSHAKE)) == CO_FL_CONNECTED)) &&
            conn->data->wake(conn) < 0)