Mercurial > hg > nginx-tests
changeset 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 | 1c5a8265f386 |
children | 8816a0edfc7b |
files | spdy.t |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spdy.t Wed Sep 24 23:56:41 2014 +0400 +++ b/spdy.t Fri Oct 03 18:27:43 2014 +0400 @@ -528,6 +528,13 @@ ($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();