Welcome! Log In Create A New Profile

Advanced

Re: Nginx chunked response

Maxim Dounin
May 22, 2018 09:54AM
Hello!

On Tue, May 22, 2018 at 09:22:44AM -0400, satishkori wrote:

> Nginx some times does not serve whole response but only first chunk. We
> don't see this kind of behaviour all the times. Below our configuration.
>
> http {
> include mime.types;
> default_type application/octet-stream;
> sendfile on;
> keepalive_timeout 65;
>
>
> location "/" {
>
> proxy_connect_timeout 300;
> proxy_send_timeout 300;
> proxy_read_timeout 300;
> send_timeout 300;
> }
>
> When i directly invoke target endpoint, its working fine.

The configuration as shown is clearly invalid. Anyway, there are
some things you may want to try:

- Try looking into error log. In most cases, it contains details
on what goes wrong.

- Try to enable debug logging, see
http://nginx.org/en/docs/debugging_log.html. It contains
details on all operations done by nginx, and can be used to
debug varios problems.

- Make sure your backend properly works via HTTP/1.0 and/or try
using "proxy_http_version 1.1" (if your backend is expected to
return chunked responses, it might be confused by HTTP/1.0).

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx chunked response

satishkori May 22, 2018 09:22AM

Re: Nginx chunked response

Maxim Dounin May 22, 2018 09:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready