-
Notifications
You must be signed in to change notification settings - Fork 66
fix crash while using multi_socket_action #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can you provide test case? |
I see what your problem. Thanks for bug report. multi = curl.multi{
timerfunction = on_curl_timeout;
socketfunction = on_curl_action;
}
-- here cURL may call e.g. `timerfunction` .
coroutine.wrap(function() multi:add_handle(c) end)()
PS. It will be good if you have any simple testcase without any external deps. |
I will provide testcase later. it depend on libuv and luv(lua libuv) |
I know about this :). And I use this example to test on local machine. |
I have similar example uvwget |
end | ||
|
||
wget.data = {} | ||
easy:setopt_writefunction(function(ud, s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to notice. you can use just easy:setopt_writefunction(table.insert, wget.data)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I got it
No description provided.