Mercurial > hg > nginx-tests
changeset 1788:78fe648d54a7
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 30 Aug 2022 17:24:16 +0400 |
parents | e55aa7021ea5 |
children | c67b390cb9ef |
files | h2_ssl.t |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_ssl.t Thu Aug 25 16:53:15 2022 -0700 +++ b/h2_ssl.t Tue Aug 30 17:24:16 2022 +0400 @@ -12,6 +12,8 @@ use Test::More; +use Socket qw/ SOL_SOCKET SO_RCVBUF /; + BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; @@ -121,6 +123,8 @@ # 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;