Hello!
On Wed, Apr 6, 2016 at 1:49 AM, Suchit Puri wrote:
> We are migrating our production servers from openresty/1.7.4.1 to
> openresty/1.9.7.3 , earlier when using version 1.7.4.1 we used to call
> ngx.eof() as the first line so as to send an empty output to the user. Now
> with 1.9.7.3 when we try to do the same we are not able to ready the post
> data body using ngx.req.read_body() followed by ngx.req.get_body_data() . is
> this expected behaviour ? cause Ideally the input buffers should not be
> affected by the output ones.
Will you provide a minimal and standalone example that we can run
easily on our side?
Regarding your usage itself, it's recommended to read the request body
before calling ngx.eof() since some HTTP clients may prematurely close
the connection when they see the whole response body from the server.
Regards,
-agentzh