# HG changeset patch # User Sergey Kandaurov # Date 1493914770 -10800 # Node ID ec9ddfed9b635a50a27be1bc7351db7386effcba # Parent 1a54d45d5587b942dae92404905cc35e1e0b726c Tests: handled SIGPIPE in h2.t. diff --git a/h2.t b/h2.t --- 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;