Giter Club home page Giter Club logo

Comments (6)

jacobsimeon avatar jacobsimeon commented on July 29, 2024

After applying the patch in #73, The error is more generic:

/Users/jacobmorris/Projects/patron_test/patron/lib/patron/session.rb:230:in `handle_request': Patron::Error
    from /Users/jacobmorris/Projects/patron_test/patron/lib/patron/session.rb:230:in `request'
    from /Users/jacobmorris/Projects/patron_test/patron/lib/patron/session.rb:129:in `get'
    from patron_test.rb:11:in `block (2 levels) in do_raw_patron_test'

from patron.

totallymike avatar totallymike commented on July 29, 2024

This still appears to be an issue

from patron.

julik avatar julik commented on July 29, 2024

Would it be a good thing to just note that a Session is not meant to be shared between threads? IMO, a CURL handle is something that should be subject to an explicit external resource pooling, instead of providing built-in thread safety guarantees.

from patron.

julik avatar julik commented on July 29, 2024

@totallymike would that work if the threading behavior would be documented?

from patron.

totallymike avatar totallymike commented on July 29, 2024

I suspect that would help quite a bit. It's been some time since I've worked on the project in which I used patron, so I've lost a bit of context.

from patron.

julik avatar julik commented on July 29, 2024

There is now a section in the README describing the recommended approach to multithreading, and it advizes the usage of connection_pool, which should work fine. Thank you for your report!

from patron.

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.