comparison src/http/ngx_http_upstream.c @ 5300:f538a67c9f77

Upstream: u->length now defaults to -1 (API change). That is, by default we assume that response end is signalled by a connection close. This seems to be better default, and in line with u->pipe->length behaviour. Memcached module was modified accordingly.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 25 Jul 2013 14:58:11 +0400
parents b779728b180c
children a50e26148d21
comparison
equal deleted inserted replaced
5299:b779728b180c 5300:f538a67c9f77
1992 r->headers_out.status = u->headers_in.status_n; 1992 r->headers_out.status = u->headers_in.status_n;
1993 r->headers_out.status_line = u->headers_in.status_line; 1993 r->headers_out.status_line = u->headers_in.status_line;
1994 1994
1995 r->headers_out.content_length_n = u->headers_in.content_length_n; 1995 r->headers_out.content_length_n = u->headers_in.content_length_n;
1996 1996
1997 u->length = u->headers_in.content_length_n; 1997 u->length = -1;
1998 1998
1999 return NGX_OK; 1999 return NGX_OK;
2000 } 2000 }
2001 2001
2002 2002