Giter Club home page Giter Club logo

Comments (3)

nevir avatar nevir commented on August 15, 2024

From a bit of googling around, it looks like defining a CURLMOPT_SOCKETFUNCTION callback might be required to handle this (the documentation is unclear, and the socket function proper is deprecated)

For the record, I'm running curl 7.19.5

Update: and now I'm not so sure - that seems to be valid for when you're manually telling curl to process a socket (libevent and whatnot), but not for the standard select() paradigm?

from curb.

taf2 avatar taf2 commented on August 15, 2024

Hey nevir,

I think it might be a race condition in the threading code around Curl::Multi, that's causing the errors... I created this reduced test case here: http://github.com/taf2/curb/blob/ab433db38df1e86cfc0261796a96fe1cb3cde209/tests/tc_curl_multi.rb#L324


I believe that tests the condition you described.


You are correct when using standard select defining a CURLMOPT_SOCKETFUNCTION is not required. evdispatch, is a libcurl library that tries to implement what I believe you want in C with a libev loop. http://evdispatch.rubyforge.org/ (although, i can't say it's stable...)


Looking at the requester.rb code, I think there is potentially a race condition causing the Bad file descriptor errors...

from curb.

taf2 avatar taf2 commented on August 15, 2024

I believe the issue as described is covered in the test above, can reopen if you disagree.

from curb.

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.