Mercurial > hg > nginx-tests
comparison lib/Test/Nginx/HTTP2.pm @ 1300:940e04c58a79
Tests: fixed initial window size for HTTP/2 streams with given ID.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 19 Mar 2018 12:51:35 +0300 |
parents | 28e5f1fa80e1 |
children | d6382e557fc0 |
comparison
equal
deleted
inserted
replaced
1299:28e5f1fa80e1 | 1300:940e04c58a79 |
---|---|
203 | 203 |
204 if ($stream) { | 204 if ($stream) { |
205 $self->{last_stream} = $stream; | 205 $self->{last_stream} = $stream; |
206 } else { | 206 } else { |
207 $self->{last_stream} += 2; | 207 $self->{last_stream} += 2; |
208 $self->{streams}{$self->{last_stream}} = $self->{iws}; | 208 } |
209 } | 209 $self->{streams}{$self->{last_stream}} = $self->{iws}; |
210 | 210 |
211 $buf = pack("xxx"); # Length stub | 211 $buf = pack("xxx"); # Length stub |
212 $buf .= pack("CC", $type, $flags); # END_HEADERS | 212 $buf .= pack("CC", $type, $flags); # END_HEADERS |
213 $buf .= pack("N", $self->{last_stream}); # Stream-ID | 213 $buf .= pack("N", $self->{last_stream}); # Stream-ID |
214 | 214 |