File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# vim:set ft= ts=4 sw=4 et fdm=marker:
2
2
3
3
use Test::Nginx::Socket::Lua;
4
+ use Test::Nginx::Socket::Lua::Stream;
4
5
5
6
repeat_each(2);
6
7
@@ -10,6 +11,7 @@ our $HtmlDir = html_dir;
10
11
11
12
$ENV {TEST_NGINX_MEMCACHED_PORT } ||= 11211;
12
13
$ENV {TEST_NGINX_RESOLVER } ||= ' 8.8.8.8' ;
14
+ $ENV {TEST_NGINX_HTML_DIR } ||= html_dir();
13
15
14
16
# log_level 'warn';
15
17
log_level ' debug' ;
@@ -4503,7 +4505,7 @@ reused times: 3, setkeepalive err: closed
4503
4505
=== TEST 74: setkeepalive with TLSv1.3
4504
4506
--- skip_openssl: 3: < 1.1.1
4505
4507
--- stream_server_config
4506
- listen 11443 ssl;
4508
+ listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
4507
4509
ssl_certificate ../../cert/test.crt;
4508
4510
ssl_certificate_key ../../cert/test.key;
4509
4511
ssl_protocols TLSv1.3;
@@ -4523,7 +4525,7 @@ reused times: 3, setkeepalive err: closed
4523
4525
local sock = ngx.socket.tcp()
4524
4526
sock:settimeout(2000)
4525
4527
4526
- local ok, err = sock:connect("127.0.0.1", 11443 )
4528
+ local ok, err = sock:connect("unix:$TEST_NGINX_HTML_DIR/nginx.sock" )
4527
4529
if not ok then
4528
4530
ngx.say("failed to connect: ", err)
4529
4531
return
You can’t perform that action at this time.
0 commit comments