BUG/MEDIUM: lua/socket: Notification error
authorThierry FOURNIER <thierry.fournier@ozon.io>
Sat, 26 May 2018 22:59:48 +0000 (00:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 31 May 2018 08:58:41 +0000 (10:58 +0200)
commitba42fcd064c3f371610126dee6f25c2d7f1e4040
tree5b0d72c66668657f0a433c4473d7e7d8ab65cf48
parent7e4ee47accdb93925ddfc18cf6f181ff334abcdc
BUG/MEDIUM: lua/socket: Notification error

Each time the send function yields, a notification must be registered.
Without this notification, the task is never wakeup when data arrives.

Today, the notification is registered only if the buffer is not available.
Other cases like the buffer is too small for all data are not processed.

This patch must be backported in 1.6, 1.7 and 1.8
src/hlua.c