mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: session: report lack of resources using the new stream-interface's error code
Let's now use SI_ET_CONN_RES to report lack of resources instead of SO_ET_CONN_OTHER with a handcrafted code.
This commit is contained in:
parent
2d400bb931
commit
6bbb2f68cd
@ -1172,13 +1172,12 @@ static void sess_prepare_conn_req(struct session *s, struct stream_interface *si
|
|||||||
* error code to ignore the ERR_LOCAL which is not a
|
* error code to ignore the ERR_LOCAL which is not a
|
||||||
* real error.
|
* real error.
|
||||||
*/
|
*/
|
||||||
s->flags = (s->flags & ~SN_ERR_MASK) | SN_ERR_RESOURCE;
|
s->flags &= ~(SN_ERR_MASK | SN_FINST_MASK);
|
||||||
s->flags = (s->flags & ~SN_FINST_MASK) | SN_FINST_C;
|
|
||||||
|
|
||||||
si_shutr(si);
|
si_shutr(si);
|
||||||
si_shutw(si);
|
si_shutw(si);
|
||||||
si->ob->flags |= CF_WRITE_ERROR;
|
si->ob->flags |= CF_WRITE_ERROR;
|
||||||
si->err_type = SI_ET_CONN_OTHER;
|
si->err_type = SI_ET_CONN_RES;
|
||||||
si->state = SI_ST_CLO;
|
si->state = SI_ST_CLO;
|
||||||
if (s->srv_error)
|
if (s->srv_error)
|
||||||
s->srv_error(s, si);
|
s->srv_error(s, si);
|
||||||
|
Loading…
Reference in New Issue
Block a user