comparison spdy.t @ 470:00275fa9091c

Tests: fixed SPDY test with limit_conn. Let existing streams drain their data and close before issuing subsequent requests that is a subject to limit_conn restriction.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 03 Oct 2014 18:27:43 +0400
parents d1c4b0d15484
children c2c1eb6d7a76
comparison
equal deleted inserted replaced
469:1c5a8265f386 470:00275fa9091c
525 ($frame) = grep { $_->{type} eq "SYN_REPLY" && $_->{sid} == $sid1 } @$frames; 525 ($frame) = grep { $_->{type} eq "SYN_REPLY" && $_->{sid} == $sid1 } @$frames;
526 is($frame->{headers}->{':status'}, 200, 'conn_limit 1'); 526 is($frame->{headers}->{':status'}, 200, 'conn_limit 1');
527 527
528 ($frame) = grep { $_->{type} eq "SYN_REPLY" && $_->{sid} == $sid2 } @$frames; 528 ($frame) = grep { $_->{type} eq "SYN_REPLY" && $_->{sid} == $sid2 } @$frames;
529 is($frame->{headers}->{':status'}, 503, 'conn_limit 2'); 529 is($frame->{headers}->{':status'}, 503, 'conn_limit 2');
530
531 spdy_settings($sess, 7 => 2**16);
532
533 spdy_read($sess, all => [
534 { sid => $sid1, fin => 1 },
535 { sid => $sid2, fin => 1 }
536 ]);
530 537
531 # limit_conn + client's RST_STREAM 538 # limit_conn + client's RST_STREAM
532 539
533 $sess = new_session(); 540 $sess = new_session();
534 spdy_settings($sess, 7 => 1); 541 spdy_settings($sess, 7 => 1);