Skip to content

Commit b6e776c

Browse files
committed
fix: reset keepalive_ready once sending a new request
1 parent 58b02e2 commit b6e776c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/resty/http.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,9 @@ function _M.send_request(self, params)
676676
-- Apply defaults
677677
setmetatable(params, { __index = DEFAULT_PARAMS })
678678

679+
-- Sending a new request makes keepalive disabled until its response is fully read
680+
self.keepalive_ready = false
681+
679682
local sock = self.sock
680683
local body = params.body
681684
local headers = http_headers.new()

0 commit comments

Comments
 (0)