mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
MEDIUM: lua: use CF_ISRESP to detect the channel's side
Instead of comparing with session's channels, we check the channel's flags to find what side it belongs to.
This commit is contained in:
parent
78955f4c8b
commit
6c6dc16505
1 changed files with 2 additions and 2 deletions
|
|
@ -2379,7 +2379,7 @@ __LJMP static int hlua_channel_send_yield(lua_State *L, int status, lua_KContext
|
|||
* must set the flag WAKERESWR. This flag required the task
|
||||
* wake up if any activity is detected on the response buffer.
|
||||
*/
|
||||
if (chn->chn == &chn->s->res)
|
||||
if (chn->chn->flags & CF_ISRESP)
|
||||
HLUA_SET_WAKERESWR(hlua);
|
||||
else
|
||||
HLUA_SET_WAKEREQWR(hlua);
|
||||
|
|
@ -2441,7 +2441,7 @@ __LJMP static int hlua_channel_forward_yield(lua_State *L, int status, lua_KCont
|
|||
* must set the flag WAKERESWR. This flag required the task
|
||||
* wake up if any activity is detected on the response buffer.
|
||||
*/
|
||||
if (chn->chn == &chn->s->res)
|
||||
if (chn->chn->flags & CF_ISRESP)
|
||||
HLUA_SET_WAKERESWR(hlua);
|
||||
else
|
||||
HLUA_SET_WAKEREQWR(hlua);
|
||||
|
|
|
|||
Loading…
Reference in a new issue