mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-10 10:00:53 -04:00
MINOR: stream-int: Notify caller when an error is reported after a rcv_pipe()
In si_cs_send(), when an error is found on the CS or the connection at the beginning of the function, we return 1 to notify the caller some processing may be triggered. So, it seems logical to do the same after the call to rcv_pipe(). This patch is not flagged as a bug because no strange behaviour was yet observed without it. It is just a proactive fix to be consistent.
This commit is contained in:
parent
b42a8b6c61
commit
5ed7aab68a
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ int si_cs_send(struct conn_stream *cs)
|
|||
}
|
||||
|
||||
if (conn->flags & CO_FL_ERROR || cs->flags & CS_FL_ERROR)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* At this point, the pipe is empty, but we may still have data pending
|
||||
|
|
|
|||
Loading…
Reference in a new issue