I did this
Watched CI break with curl 7.81.
Seriously, 340bb19 breaks the intended usage of curl_multi_assign.
Quoting docs:
In a typical application you allocate a struct or at least use some kind of semi-dynamic data for each socket that we must wait for action on when using the curl_multi_socket_action approach.
When our socket-callback gets called by libcurl and we get to know about yet another socket to wait for, we can use curl_multi_assign to point out the particular data so that when we get updates about this same socket again, we do not have to find the struct associated with this socket by ourselves.
I expected the following
curl_multi_assign to work from within callbacks.
Coincidentally, docs/examples/hiperfifo.c and docs/examples/multi-event.c are broken, too.
curl/libcurl version
7.81/master
operating system
POSIX
I did this
Watched CI break with curl 7.81.
Seriously, 340bb19 breaks the intended usage of
curl_multi_assign.I expected the following
curl_multi_assignto work from within callbacks.Coincidentally,
docs/examples/hiperfifo.canddocs/examples/multi-event.care broken, too.curl/libcurl version
7.81/master
operating system
POSIX