# HG changeset patch # User Sergey Kandaurov # Date 1661865856 -14400 # Node ID 78fe648d54a79822a72f3a5f8cc79651b3b1f5a7 # Parent e55aa7021ea538080698ac67fe9a2ef7d325d367 Tests: avoid send timeout in h2_ssl.t test with canceled streams. While being irrelevant to catching alerts, it slows down run time on systems with short socket buffers. diff --git a/h2_ssl.t b/h2_ssl.t --- a/h2_ssl.t +++ b/h2_ssl.t @@ -12,6 +12,8 @@ use strict; use Test::More; +use Socket qw/ SOL_SOCKET SO_RCVBUF /; + BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; @@ -121,6 +123,8 @@ is($frame->{headers}->{':status'}, 200, # while some unsent data was left in the SSL buffer # HEADERS frame may stuck in SSL buffer and won't be sent producing alert +$s = getconn(['http/1.1', 'h2']); +$s->{socket}->setsockopt(SOL_SOCKET, SO_RCVBUF, 1024*1024) or die $!; $sid = $s->new_stream({ path => '/tbig.html' }); select undef, undef, undef, 0.2;