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
+++ 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();