cURL Mailing List Monthly Index Single Mail
curl-and-python mailing list Archives
Re: socket_action fails because of unhandled return value
Daniel Stenberg wrote
> Jacob Kristhammar wrote:
> > To me it looks like multi_socket_action gets a
> > return value which it can't handle. (pycurl will raise an error
> > return value is anything but CURLM_OK)
> > The libcurl docs contain the following phrase:
> > "In modern libcurls, CURLM_CALL_MULTI_PERFORM or
> > should not be returned and no application needs to care about
> > What does modern refer to, is 7.18.2 considered modern?
> That's a rather sloppy phrase that we should improve. I think in
> "modern" actually mean 7.19.0 or later, based only on when that
text was added
> in the manual but I haven't actually researched the source code for
> > If so, what else might cause multi_socket_action to return
> > CURLM_CALL_MULTI_PERFORM)?
> The only thing that may cause it to get returned is that libcurl
> because it wants to do something more before waiting for the next
> "event" so you need to call it again. The problem is of course that
> of API doesn't work very good with multi_socket_action() and that
is why we've
> worked on removing it in more recent versions.
> We have after all done eight releases since 7.18.2, boasting more
than 200 bug
I see. I will upgrade to a newer version and see if this solves the
I'll also add some precocious try/except to handle the the error and
treat it like CURLM_CALL_MULTI_PERFORM if the return value is -1.
Received on 2009-11-23
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info