Opened 7 years ago

Closed 7 years ago

#541 closed defect (worksforme)

nginx-tests: proxy_unfinished.t test 'no proxy temp' does not work

Reported by: Markus Linnala Owned by:
Priority: minor Milestone:
Component: other Version: 1.5.x
Keywords: Cc:
uname -a: Linux tester 3.13.9-200.fc20.x86_64 #1 SMP Fri Apr 4 12:13:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.5.13
built by gcc 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)
configure arguments: --with-http_sub_module

Description

nginx-tests proxy_unfinished.t last test 'no proxy temp' does not work as nginx does not write to proxy_temp.

This is obvious from error_log as there is no mention of error writing to proxy_temp.

I'm using stock nginx 1.5.13 with sub module.

If I modify test (attached), I can get error like

2014/04/14 18:03:37 [crit] 13385#0: *1 open() "/tmp/nginx-test-hZk1LOj63E/proxy_temp/0000000001" failed (13: Permission denied) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /proxy/big.html HTTP/1.1", upstream: "http://127.0.0.1:8081/proxy/big.html", host: "localhost"

And test also fails to do what is intended as it does not output anything.

Attachments (1)

proxy_no_proxy_temp2.t (2.8 KB ) - added by Markus Linnala 7 years ago.

Download all attachments as: .zip

Change History (2)

by Markus Linnala, 7 years ago

Attachment: proxy_no_proxy_temp2.t added

comment:1 by Maxim Dounin, 7 years ago

Resolution: worksforme
Status: newclosed

The test in question depends on various socket buffer sizes and may not be triggered on your particular system if you are using big socket buffers. It works fine here though:

$ TEST_NGINX_CATLOG=1 prove -v proxy_unfinished.t | grep 'Permission denied'
2014/04/14 19:37:28 [crit] 83606#0: *33 open() "/tmp/nginx-test-9dVMEWSyjb/proxy_temp/0000000007" failed (13: Permission denied) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /proxy/big.html HTTP/1.1", upstream: "http://127.0.0.1:8080/local/big.html", host: "localhost"

If you aren't happy with current situation, you are welcome to provide patches to improve interoperability. Please see http://nginx.org/en/docs/contributing_changes.html for a recommended way to contribute changes.

Note: See TracTickets for help on using tickets.