Mercurial > hg > nginx-tests
diff h2_limit_conn.t @ 1986:11463d379570
Tests: reworked HTTP/2 tests to use "http2 on".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 05:08:02 +0300 |
parents | 236d038dc04a |
children |
line wrap: on
line diff
--- a/h2_limit_conn.t +++ b/h2_limit_conn.t @@ -39,9 +39,11 @@ http { limit_conn_zone $binary_remote_addr zone=conn:1m; server { - listen 127.0.0.1:8080 http2; + listen 127.0.0.1:8080; server_name localhost; + http2 on; + location /t.html { limit_conn conn 1; } @@ -51,12 +53,7 @@ http { EOF $t->write_file('t.html', 'SEE-THIS'); - -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################