BUG/MINOR, BUG/MINOR: lua: Put tasks to sleep when waiting for data
authorPiBa-NL <PiBa.NL.dev@gmail.com>
Wed, 2 May 2018 20:27:14 +0000 (22:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 May 2018 03:00:25 +0000 (05:00 +0200)
commitfe971b35aeca9994f3823112c783aa796e74075a
tree49e12473004865f0d4749744cbf09a33636579da
parent148b16e1ceb819dfcef4c45828121d9cd7474b35
BUG/MINOR, BUG/MINOR: lua: Put tasks to sleep when waiting for data

If a lua socket is waiting for data it currently spins at 100% cpu usage.
This because the TICK_ETERNITY returned by the socket is ignored when
setting the 'expire' time of the task.

Fixed by removing the check for yields that return TICK_ETERNITY.

This should be backported to at least 1.8.
src/hlua.c