# HG changeset patch # User Sergey Kandaurov # Date 1474366133 -10800 # Node ID a034903de974f3ad3eb7f354f0c99e87c9869135 # Parent 92479d9429ff361977d95b7b8c655f8abfaff116 Tests: use port numbers from 8xxx pool. diff --git a/h2_ssl.t b/h2_ssl.t --- a/h2_ssl.t +++ b/h2_ssl.t @@ -81,7 +81,7 @@ open OLDERR, ">&", \*STDERR; close STDER $t->run(); open STDERR, ">&", \*OLDERR; -plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(0)); +plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(8080)); $t->plan(1); ############################################################################### @@ -90,7 +90,7 @@ plan(skip_all => 'no ALPN/NPN negotiatio # while some unsent data was left in the SSL buffer # HEADERS frame may stuck in SSL buffer and won't be sent producing alert -my $s = getconn(port(0)); +my $s = getconn(port(8080)); ok($s, 'ssl connection'); my $sid = $s->new_stream({ path => '/tbig.html' }); diff --git a/h2_ssl_proxy_cache.t b/h2_ssl_proxy_cache.t --- a/h2_ssl_proxy_cache.t +++ b/h2_ssl_proxy_cache.t @@ -95,14 +95,14 @@ open OLDERR, ">&", \*STDERR; close STDER $t->run(); open STDERR, ">&", \*OLDERR; -plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(0)); +plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(8080)); $t->plan(1); ############################################################################### # client cancels stream with a cacheable request sent to upstream causing alert -my $s = getconn(port(0)); +my $s = getconn(port(8080)); ok($s, 'ssl connection'); my $sid = $s->new_stream(); @@ -110,7 +110,7 @@ my $sid = $s->new_stream(); # large response may stuck in SSL buffer and won't be sent producing alert -my $s2 = getconn(port(0)); +my $s2 = getconn(port(8080)); $sid = $s2->new_stream({ path => '/tbig.html' }); $s2->h2_window(2**30, $sid); $s2->h2_window(2**30);