comparison spdy.t @ 443:d1c4b0d15484

Tests: fixed SPDY test for premature client connection close. Wait for the proper Stream-ID in response to reduce execution time.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 24 Jul 2014 21:58:16 +0400
parents cc4697d6bd16
children 00275fa9091c
comparison
equal deleted inserted replaced
442:cc4697d6bd16 443:d1c4b0d15484
303 TODO: { 303 TODO: {
304 local $TODO = 'premature client connection close' 304 local $TODO = 'premature client connection close'
305 unless $t->has_version('1.7.3'); 305 unless $t->has_version('1.7.3');
306 306
307 $sid2 = spdy_stream($sess, { path => '/' }); 307 $sid2 = spdy_stream($sess, { path => '/' });
308 $frames = spdy_read($sess, all => [{ sid => $sid1, fin => 1 }]); 308 $frames = spdy_read($sess, all => [{ sid => $sid2, fin => 1 }]);
309 ok(grep ({ $_->{type} eq "SYN_REPLY" } @$frames), 'proxy cache headers only'); 309 ok(grep ({ $_->{type} eq "SYN_REPLY" } @$frames), 'proxy cache headers only');
310 310
311 } 311 }
312 312
313 # HEAD on empty cache with proxy_buffering off 313 # HEAD on empty cache with proxy_buffering off