Mercurial > hg > nginx-tests
comparison h2.t @ 719:91bedf9d60a7
Tests: adjusted field length in HTTP/2 test for max frame size.
Made sure to always get response header fields split across HTTP/2 frames.
Huffman encoding could be used to compress such a field to fit in a frame.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 28 Sep 2015 17:22:33 +0300 |
parents | ba822b2e899c |
children | 3c09ccf97d80 |
comparison
equal
deleted
inserted
replaced
718:ba822b2e899c | 719:91bedf9d60a7 |
---|---|
1360 | 1360 |
1361 TODO: { | 1361 TODO: { |
1362 local $TODO = 'not yet'; | 1362 local $TODO = 'not yet'; |
1363 | 1363 |
1364 $sess = new_session(); | 1364 $sess = new_session(); |
1365 $sid = new_stream($sess, { path => '/continuation?h=' . 'x' x 2**14 }); | 1365 $sid = new_stream($sess, { path => '/continuation?h=' . 'x' x 2**15 }); |
1366 | 1366 |
1367 $frames = h2_read($sess, all => [{ sid => $sid, fin => 0x4 }]); | 1367 $frames = h2_read($sess, all => [{ sid => $sid, fin => 0x4 }]); |
1368 @data = grep { $_->{type} =~ "HEADERS|CONTINUATION" } @$frames; | 1368 @data = grep { $_->{type} =~ "HEADERS|CONTINUATION" } @$frames; |
1369 @data = sort { $a <=> $b } map { $_->{length} } @data; | 1369 @data = sort { $a <=> $b } map { $_->{length} } @data; |
1370 cmp_ok($data[-1], '<=', 2**14, 'response header frames limited'); | 1370 cmp_ok($data[-1], '<=', 2**14, 'response header frames limited'); |