BUG/MEDIUM: lua/socket: Length required read doesn't work
authorThierry FOURNIER <thierry.fournier@ozon.io>
Fri, 25 May 2018 14:27:44 +0000 (16:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 May 2018 06:51:05 +0000 (08:51 +0200)
commit8c126c7235ced98986a57175a62503d5166ffe19
treec3534ec20cb20d60e1da452064d1ec6efd9933d4
parent9215ffa6b294374e99e5ab027bea9b34642d7277
BUG/MEDIUM: lua/socket: Length required read doesn't work

The limit of data read works only if all the data is in the
input buffer. Otherwise (if the data arrive in chunks), the
total amount of data is not taken in acount.

Only the current read data are compared to the expected amout
of data.

This patch must be backported from 1.9 to 1.6
src/hlua.c