Skip to content

Commit b636915

Browse files
committed
fix: test failing because connect missing
1 parent c48bda8 commit b636915

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/07-keepalive.t

+8
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,13 @@ GET /a
565565
ngx.say(res.headers["Connection"])
566566
ngx.say(httpc:set_keepalive())
567567
568+
httpc:connect({
569+
scheme = "http",
570+
host = "127.0.0.1",
571+
port = ngx.var.server_port,
572+
pool_only_after_response = true
573+
})
574+
ngx.say(httpc:get_reused_times())
568575
res, err = httpc:request{
569576
path = "/b"
570577
}
@@ -583,6 +590,7 @@ GET /a
583590
--- response_body
584591
keep-alive
585592
1
593+
1
586594
response not fully read
587595
--- no_error_log
588596
[error]

0 commit comments

Comments
 (0)