Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/cURLv3/uvwget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ on_curl_timeout = function(ms)
-- calls by curl --
trace("CURL::TIMEOUT", ms)

if ms <= 0 then ms = 1 end
if not timer:active() then
if ms <= 0 then ms = 1 end

timer:start(ms, 0, on_libuv_timeout)
timer:start(ms, 0, on_libuv_timeout)
end
end

on_curl_action = function(easy, fd, action)
Expand Down
2 changes: 1 addition & 1 deletion src/lua/cURL/impl/cURL.lua
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ local setopt_socketfunction = wrap_function("setopt_socketfunction")
function Multi:setopt_socketfunction(...)
local cb = wrap_callback(...)

return setopt_socketfunction(wrap_socketfunction(self, cb))
return setopt_socketfunction(self, wrap_socketfunction(self, cb))
end

local setopt = wrap_function("setopt")
Expand Down