Mercurial > hg > nginx-tests
changeset 1174:ec9ddfed9b63
Tests: handled SIGPIPE in h2.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 04 May 2017 19:19:30 +0300 |
parents | 1a54d45d5587 |
children | 717030fd5a94 |
files | h2.t |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t +++ b/h2.t @@ -294,7 +294,10 @@ is($frame->{code}, 1, 'GOAWAY invalid st # N.B. other implementation returns zero code, which is not anyhow regulated $s = Test::Nginx::HTTP2->new(); -syswrite($s->{socket}, pack("x2C2xN", 4, 0x5, 1)); +{ + local $SIG{PIPE} = 'IGNORE'; + syswrite($s->{socket}, pack("x2C2xN", 4, 0x5, 1)); +} $frames = $s->read(all => [{ type => "GOAWAY" }]); ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames;