Mercurial > hg > nginx-tests
diff 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 |
line wrap: on
line diff
--- a/spdy.t +++ b/spdy.t @@ -528,6 +528,13 @@ is($frame->{headers}->{':status'}, 200, ($frame) = grep { $_->{type} eq "SYN_REPLY" && $_->{sid} == $sid2 } @$frames; is($frame->{headers}->{':status'}, 503, 'conn_limit 2'); +spdy_settings($sess, 7 => 2**16); + +spdy_read($sess, all => [ + { sid => $sid1, fin => 1 }, + { sid => $sid2, fin => 1 } +]); + # limit_conn + client's RST_STREAM $sess = new_session();