haproxy/include
Willy Tarreau 21028b5e7f MEDIUM: appctx: check for allocation attempts in buffer allocation callbacks
The buffer allocation callback appctx_res_wakeup() used to rely on old
tricks to detect if a buffer was already granted to an appctx, namely
by checking the task's state. Not only this test is not valid anymore,
but it's inaccurate.

Let's solely on SI_FL_WAIT_ROOM that is now set on allocation failure by
the functions trying to allocate a buffer. The buffer is now allocated on
the fly and the flag removed so that the consistency between the two
remains granted. The patch also fixes minor issues such as the function
being improperly declared inline(!) and the fact that using appctx_wakeup()
sets the wakeup reason to TASK_WOKEN_OTHER while we try to use TASK_WOKEN_RES
when waking up consecutive to a ressource allocation such as a buffer.
2018-11-11 10:18:37 +01:00
..
common MINOR: compat: automatically detect support for crypt_r() 2018-10-29 19:14:14 +01:00
import
proto MEDIUM: appctx: check for allocation attempts in buffer allocation callbacks 2018-11-11 10:18:37 +01:00
types MINOR: stats: report the number of currently connected peers 2018-11-05 17:15:21 +01:00