mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
MINOR: checks: use conn_data_shutw_hard() instead of call via xprt
Now we only rely on the connection to do the job. This makes the code cleaner as we don't have any references to the transport shutdown outside of the connection anymore.
This commit is contained in:
parent
1398aa19d8
commit
b4017d0f77
@ -1293,14 +1293,13 @@ static void event_srv_chk_r(struct connection *conn)
|
||||
* To avoid sending RSTs all the time, we first try to drain pending
|
||||
* data.
|
||||
*/
|
||||
if (conn->xprt && conn->xprt->shutw)
|
||||
conn->xprt->shutw(conn, 0);
|
||||
__conn_data_stop_both(conn);
|
||||
conn_data_shutw_hard(conn);
|
||||
|
||||
/* OK, let's not stay here forever */
|
||||
if (check->result == CHK_RES_FAILED)
|
||||
conn->flags |= CO_FL_ERROR;
|
||||
|
||||
__conn_data_stop_both(conn);
|
||||
task_wakeup(t, TASK_WOKEN_IO);
|
||||
return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user