mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
BUG/MEDIUM: checks: Refresh the conn-stream and the connection after a connect
When a connect rule is evaluated, the conn-stream and the connection must be refreshed in tcpcheck_main(). Otherwise, in case of synchronous connect, these variables point on outdated values (NULL for the first connect or released otherwise). No backport needed.
This commit is contained in:
parent
80f59e5db1
commit
3cbdd22df5
1 changed files with 4 additions and 0 deletions
|
|
@ -2721,6 +2721,10 @@ static int tcpcheck_main(struct check *check)
|
|||
retcode = -1; /* do not reuse the fd in the caller! */
|
||||
}
|
||||
eval_ret = tcpcheck_eval_connect(check, rule);
|
||||
|
||||
/* Refresh conn-stream and connection */
|
||||
cs = check->cs;
|
||||
conn = cs_conn(cs);
|
||||
must_read = 1; last_read = 0;
|
||||
break;
|
||||
case TCPCHK_ACT_SEND:
|
||||
|
|
|
|||
Loading…
Reference in a new issue