mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
BUG/MINOR: tcp-check: don't quit with pending data in the send buffer
In the rare case where the "tcp-check send" directive is the last one in the list, it leaves the loop without sending the data. Fortunately, the polling is still enabled on output, resulting in the connection handler calling back to send what remains, but this is ugly and not very reliable. This may be backported to 1.7 and 1.6.
This commit is contained in:
parent
a3782e7594
commit
82feaaf042
@ -2786,8 +2786,6 @@ static void tcpcheck_main(struct connection *conn)
|
|||||||
check->current_step->action == TCPCHK_ACT_COMMENT)
|
check->current_step->action == TCPCHK_ACT_COMMENT)
|
||||||
check->current_step = LIST_NEXT(&check->current_step->list, struct tcpcheck_rule *, list);
|
check->current_step = LIST_NEXT(&check->current_step->list, struct tcpcheck_rule *, list);
|
||||||
|
|
||||||
if (&check->current_step->list == head)
|
|
||||||
break;
|
|
||||||
} /* end 'send' */
|
} /* end 'send' */
|
||||||
else if (check->current_step->action == TCPCHK_ACT_EXPECT) {
|
else if (check->current_step->action == TCPCHK_ACT_EXPECT) {
|
||||||
if (unlikely(check->result == CHK_RES_FAILED))
|
if (unlikely(check->result == CHK_RES_FAILED))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user