Skip to content
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

Fix multi interface #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

stephanm
Copy link

@stephanm stephanm commented Feb 18, 2025

Hi!

This should fix these issues:

The main problem was that for some reason a pointer to the curl multi handle (CURLM*) was used instead of a curlMultiObjData pointer.
The latter has the multi handle and a linked list to all the child handles as members. Trying to add an easy handle to that linked list crashed if just a simple multi handle pointer is used.

I tried to keep the fixes small so they can be reviewed easier. It's similar to parts of #19 which I discovered after fixing these bugs myself :)
It can be tested easily as things like single.tcl from tests/multi are working now. I used Ubuntu 24.04 with their default libcurl3t64-gnutls package.

Cheers,
Stephan

This was linked to issues Feb 19, 2025
@bovine
Copy link
Member

bovine commented Feb 19, 2025

can you merge our master back into your branch?

@bovine bovine requested a review from resuna February 19, 2025 19:09
@stephanm
Copy link
Author

Hey @bovine, thanks for reviewing! I just merged your master branch.

@bovine
Copy link
Member

bovine commented Feb 19, 2025

nice, the CI are all green now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multi/single.tcl segfaults multi/single.tcl test hangs
2 participants