Skip to content

Commit ab80363

Browse files
committed
fix: start with keepalive_ready being true since socket is empty before requests are made
1 parent b6e776c commit ab80363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/http.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function _M.new(_)
135135
return nil, err
136136
end
137137
return setmetatable({
138-
sock = sock, keepalive_supported = true, keepalive_ready = false, pool_only_after_response = false
138+
sock = sock, keepalive_supported = true, keepalive_ready = true, pool_only_after_response = false
139139
}, mt)
140140
end
141141

0 commit comments

Comments
 (0)