GithubHelp home page GithubHelp logo

Comments (4)

JosephP91 avatar JosephP91 commented on August 21, 2024

Ho sarum9in!
Yes, I know it's not thread safe and I was just thinking of adding support for it :)

from curlcpp.

sarum9in avatar sarum9in commented on August 21, 2024

I tried to find a commit with fix, but latest one is dated "Oct 19" and not related to this bug. What closes it?

from curlcpp.

susnux avatar susnux commented on August 21, 2024

I am also interested in this and want to know if it is fixed?
(I have a multi threaded application where I want to use it, at the moment I work with mutexes (maybe dirty)).

from curlcpp.

sarum9in avatar sarum9in commented on August 21, 2024

You can verify that yourself.
https://github.com/JosephP91/curlcpp/blob/master/include/curl_interface.h
is inherited by https://github.com/JosephP91/curlcpp/blob/master/include/curl_easy.h#L853

So it means that for every easy object creation/destruction global_init and global_destroy will be called.
I checked their implementation, they use non-atomic non-locked integer counter + they call non-thread-safe init/destroy functions of underlying SSL library. So it it thread-hostile to use them like in this library, you can't use it from different threads reliably.

from curlcpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.