Mercurial > hg > nginx-tests
comparison fastcgi_cache.t @ 490:65d2d372ee31
Tests: skipped unstable fastcgi cache tests with large stderr.
FastCGI response with large stderr isn't handled well if the subsequent
response header crosses buffer's boundary.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 05 Nov 2014 19:31:51 +0300 |
parents | ec9f4f2e67e8 |
children | 071e8941e3bf |
comparison
equal
deleted
inserted
replaced
489:3036e3af0e08 | 490:65d2d372ee31 |
---|---|
65 like(http_get('/'), qr/SEE-THIS.*^1$/ms, 'fastcgi request'); | 65 like(http_get('/'), qr/SEE-THIS.*^1$/ms, 'fastcgi request'); |
66 like(http_get('/'), qr/SEE-THIS.*^1$/ms, 'fastcgi request cached'); | 66 like(http_get('/'), qr/SEE-THIS.*^1$/ms, 'fastcgi request cached'); |
67 | 67 |
68 unlike(http_head('/'), qr/SEE-THIS/, 'no data in cached HEAD'); | 68 unlike(http_head('/'), qr/SEE-THIS/, 'no data in cached HEAD'); |
69 | 69 |
70 SKIP: { | |
71 skip 'broken with header crossing buffer boundary', 2 | |
72 unless $ENV{TEST_NGINX_UNSAFE}; | |
73 | |
70 like(http_get('/stderr'), qr/SEE-THIS.*^2$/ms, 'large stderr handled'); | 74 like(http_get('/stderr'), qr/SEE-THIS.*^2$/ms, 'large stderr handled'); |
71 like(http_get('/stderr'), qr/SEE-THIS.*^2$/ms, 'large stderr cached'); | 75 like(http_get('/stderr'), qr/SEE-THIS.*^2$/ms, 'large stderr cached'); |
76 | |
77 } | |
72 | 78 |
73 ############################################################################### | 79 ############################################################################### |
74 | 80 |
75 sub fastcgi_daemon { | 81 sub fastcgi_daemon { |
76 my $socket = FCGI::OpenSocket('127.0.0.1:8081', 5); | 82 my $socket = FCGI::OpenSocket('127.0.0.1:8081', 5); |