lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

Drain trailer when setting keepalive to avoid "unread data in buffer" error

Open spacewander opened this issue 3 years ago • 1 comments

When using request_uri with the response contains trailer, we always find "unread data in buffer" error because trailers are not read before set_keepalive.

Signed-off-by: spacewander [email protected]

spacewander avatar May 24 '22 02:05 spacewander

Thanks! Looks good - I will review properly as soon as I have a bit of time.

pintsized avatar Jun 14 '22 12:06 pintsized