mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 00:02:18 -04:00
MINOR: stream-interface: no need to call fd_stop_both() on error
We don't need to call fd_stop_both() since we already call
conn_cond_update_polling() which will do it. This call was introduced by
commit d29a066 ("BUG/MAJOR: connection: always recompute polling status
upon I/O").
This commit is contained in:
parent
708e717251
commit
798c3c9c41
1 changed files with 1 additions and 2 deletions
|
|
@ -988,9 +988,8 @@ static void stream_int_chk_snd_conn(struct stream_interface *si)
|
|||
|
||||
if (!(conn->flags & (CO_FL_HANDSHAKE|CO_FL_WAIT_L4_CONN|CO_FL_WAIT_L6_CONN))) {
|
||||
si_conn_send(conn);
|
||||
if (conn_ctrl_ready(conn) && (conn->flags & CO_FL_ERROR)) {
|
||||
if (conn->flags & CO_FL_ERROR) {
|
||||
/* Write error on the file descriptor */
|
||||
fd_stop_both(conn->t.sock.fd);
|
||||
__conn_data_stop_both(conn);
|
||||
si->flags |= SI_FL_ERR;
|
||||
goto out_wakeup;
|
||||
|
|
|
|||
Loading…
Reference in a new issue