Mercurial > hg > nginx-tests
comparison h2.t @ 660:b0342dbd9390
Tests: HTTP/2 tests minor cleanup.
Use an appropriate pack specifier for collecting GOAWAY debug field data.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 24 Aug 2015 16:12:05 +0300 |
parents | 75ecd26b8831 |
children | c99c30afc1c9 |
comparison
equal
deleted
inserted
replaced
659:f3b5bee3a14e | 660:b0342dbd9390 |
---|---|
1678 substr($stream, 0, 1) = 0; | 1678 substr($stream, 0, 1) = 0; |
1679 $stream = unpack("N", pack("B32", $stream)); | 1679 $stream = unpack("N", pack("B32", $stream)); |
1680 $payload{last_sid} = $stream; | 1680 $payload{last_sid} = $stream; |
1681 | 1681 |
1682 $len -= 4; | 1682 $len -= 4; |
1683 $payload{debug} = unpack "x4 H$len", $buf; | 1683 $payload{debug} = unpack "x4 A$len", $buf; |
1684 return \%payload; | 1684 return \%payload; |
1685 } | 1685 } |
1686 | 1686 |
1687 sub window_update { | 1687 sub window_update { |
1688 my ($ctx, $buf, $len) = @_; | 1688 my ($ctx, $buf, $len) = @_; |