search for: curl_lock_data_xxx

Displaying 3 results from an estimated 3 matches for "curl_lock_data_xxx".

2023 Feb 22
1
[PATCH nbdkit] curl: Try to share as much as possible between handles in the pool
...che between > threads, then CURL_LOCK_DATA_CONNECT is effectively unusable, and no > connection pooling can be done. How does that *not* make this whole curl > facility useless? > > The facility in general looks super weird; what sense does it make *not* > to share some particular CURL_LOCK_DATA_xxx? I can only conclude this cannot be true. Daniel Stenberg wrote this code which definitely uses threads: https://gist.github.com/bagder/7eccf74f8b6d70b5abefeb7f288dba9b Also I did a lot of testing and didn't hit any obvious threading bugs. Nevertheless I'm not planning to integrate thi...
2023 Feb 22
1
[PATCH nbdkit] curl: Try to share as much as possible between handles in the pool
...fe to share the connection cache between threads, then CURL_LOCK_DATA_CONNECT is effectively unusable, and no connection pooling can be done. How does that *not* make this whole curl facility useless? The facility in general looks super weird; what sense does it make *not* to share some particular CURL_LOCK_DATA_xxx? Laszlo
2023 Feb 22
1
[PATCH nbdkit] curl: Try to share as much as possible between handles in the pool
Using the libcurl share interface we can share data between the separate curl easy handles in the pool. For more about this see: https://curl.se/libcurl/c/CURLSHOPT_SHARE.html https://gist.github.com/bagder/7eccf74f8b6d70b5abefeb7f288dba9b https://everything.curl.dev/libcurl/sharing --- plugins/curl/curldefs.h | 3 +- plugins/curl/curl.c | 4 ++- plugins/curl/pool.c | 75