Klaus Demo nginx / 416b922
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. Maxim Dounin 8 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
440440 u = ctx->request->upstream;
441441
442442 if (u->headers_in.status_n != 404) {
443 u->length += NGX_HTTP_MEMCACHED_END;
443 u->length = u->headers_in.content_length_n + NGX_HTTP_MEMCACHED_END;
444444 ctx->rest = NGX_HTTP_MEMCACHED_END;
445
446 } else {
447 u->length = 0;
445448 }
446449
447450 return NGX_OK;
19931993
19941994 r->headers_out.content_length_n = u->headers_in.content_length_n;
19951995
1996 u->length = u->headers_in.content_length_n;
1996 u->length = -1;
19971997
19981998 return NGX_OK;
19991999 }