Opened 12 years ago

Closed 11 years ago

#223 closed defect (wontfix)

when using proxy_buffer_size 0 instead proxy_buffering off gives bad gateway

Reported by: Jayson Reis Owned by: somebody
Priority: major Milestone:
Component: nginx-core Version: 1.2.x
Keywords: Cc:
uname -a: Linux jayson-desktop 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.2.3
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-dav-ext-module

Description

to reproduce it
set a proxy_pass to any server and then proxy_buffer_size 0 and do not set proxy_buffering off
it will return a bad gateway with message below

2012/09/18 18:17:29 [error] 16826#0: *1 upstream prematurely closed connection while reading response
header from upstream, client: 127.0.0.1, server: api.homolog.ideassync.com, request: "HEAD /admin/ HTTP/1.1", upstream: "http://72.44.49.248:80/admin/", host: "api.homolog.ideassync.com"

shouldn't it fail in config or log something more useful?

Change History (1)

comment:1 by Maxim Dounin, 11 years ago

Resolution: wontfix
sensitive: 0
Status: newclosed

I don't think it worth special handling.

Note: See TracTickets for help on using tickets.