[PATCH 1 of 1] Test proxy_unfinished: limit buffers to force buffering on no proxy temp
Maxim Dounin
mdounin at mdounin.ru
Tue Apr 15 13:04:44 UTC 2014
Hello!
On Tue, Apr 15, 2014 at 03:26:26PM +0300, Markus Linnala wrote:
> # HG changeset patch
> # User Markus Linnala <Markus.Linnala at cybercom.com>
> # Date 1397505734 -10800
> # Mon Apr 14 23:02:14 2014 +0300
> # Node ID cf54213675d59b801bee34328223c28f992cf8c7
> # Parent 74a015aad3521ffef6b404cdaa9eafd991824301
> Test proxy_unfinished: limit buffers to force buffering on no proxy temp
>
> With some systems (Fedora-20 Linux 3.13) socket buffers are huge and
> nginx does not use temp files when proxying. Set buffer sizes to small
> values to make use of temp files more probable. Currently there is no
> way to force temp buffers.
>
> no proxy temp should fail on 1.5.2 and work okay on later versions.
>
> sub_filter forces chunked encoding and so it is possible to notice
> problem because last chunk is 0 chunk when there is error.
>
> Only use limited buffers on 'no proxy temp' as other tests fail
> because tests take too long.
>
> http://trac.nginx.org/nginx/ticket/541
[...]
Have you tried something simplier, like
--- a/proxy_unfinished.t
+++ b/proxy_unfinished.t
@@ -50,7 +50,7 @@ http {
keys_zone=one:1m;
server {
- listen 127.0.0.1:8080;
+ listen 127.0.0.1:8080 sndbuf=4k;
server_name localhost;
location / {
?
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list