mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MINOR: stream: Set SC_FL_ERROR on channels' buffer allocation error
Set SC_FL_ERROR flag when we fail to allocate a buffer for a stream.
This commit is contained in:
parent
38656f406c
commit
340021b89f
@ -1806,9 +1806,11 @@ struct task *process_stream(struct task *t, void *context, unsigned int state)
|
|||||||
*/
|
*/
|
||||||
if (!stream_alloc_work_buffer(s)) {
|
if (!stream_alloc_work_buffer(s)) {
|
||||||
sc_ep_set(s->scf, SE_FL_ERROR);
|
sc_ep_set(s->scf, SE_FL_ERROR);
|
||||||
|
scf->flags |= SC_FL_ERROR;
|
||||||
s->conn_err_type = STRM_ET_CONN_RES;
|
s->conn_err_type = STRM_ET_CONN_RES;
|
||||||
|
|
||||||
sc_ep_set(s->scb, SE_FL_ERROR);
|
sc_ep_set(s->scb, SE_FL_ERROR);
|
||||||
|
scb->flags |= SC_FL_ERROR;
|
||||||
s->conn_err_type = STRM_ET_CONN_RES;
|
s->conn_err_type = STRM_ET_CONN_RES;
|
||||||
|
|
||||||
if (!(s->flags & SF_ERR_MASK))
|
if (!(s->flags & SF_ERR_MASK))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user