mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
MEDIUM: stconn: Forbid applets with more to deliver if EOI was reached
When an applet is woken up, before calling its io_handler, we pretend it has no more data to deliver. So, after the io_handler execution, it is a bug if an applet states it has more data to deliver while the end of input is reached. So a BUG_ON() is added to be sure it never happens.
This commit is contained in:
parent
56a2b608b0
commit
e8bcef5f22
@ -1847,6 +1847,8 @@ static int sc_applet_process(struct stconn *sc)
|
|||||||
sc_abort(sc);
|
sc_abort(sc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BUG_ON(sc_ep_test(sc, SE_FL_HAVE_NO_DATA|SE_FL_EOI) == SE_FL_EOI);
|
||||||
|
|
||||||
/* If the applet wants to write and the channel is closed, it's a
|
/* If the applet wants to write and the channel is closed, it's a
|
||||||
* broken pipe and it must be reported.
|
* broken pipe and it must be reported.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user