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:
Christopher Faulet 2018-11-19 22:02:07 +01:00
parent b42a8b6c61
commit 5ed7aab68a

View File

@ -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