Skip to content

Share interface : Connection pool sharing between threads #12895

Answered by bagder
MatouCode asked this question in Q&A
Discussion options

You must be logged in to vote

1

In the manpage for CURLSHOPT_SHARE, where CURL_LOCK_DATA_CONNECT is documented, it says:

It is not supported to share connections between multiple concurrent threads.

2

In the TODO file, item "1.4" under Better and more sharing it says:

The share interface offers CURL_LOCK_DATA_CONNECT to have multiple easy
handle share a connection cache, but due to how connections are used they are
still not thread-safe when used shared.

See #4915 and lib1541.c

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bagder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants