We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7aee5b + cd56e5a commit b017805Copy full SHA for b017805
lib/resty/http.lua
@@ -115,6 +115,16 @@ function _M.set_timeout(self, timeout)
115
end
116
117
118
+function _M.set_timeouts(self, connect_timeout, send_timeout, read_timeout)
119
+ local sock = self.sock
120
+ if not sock then
121
+ return nil, "not initialized"
122
+ end
123
+
124
+ return sock:settimeouts(connect_timeout, send_timeout, read_timeout)
125
+end
126
127
128
function _M.ssl_handshake(self, ...)
129
local sock = self.sock
130
if not sock then
0 commit comments