cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-python Archives

socket_action fails because of unhandled return value

From: Jacob Kristhammar <kristhammar_at_gmail.com>
Date: Sun, 22 Nov 2009 21:56:20 +0100

Hi,

I'm trying to use the multi interface together with epoll to implement a simple HTTP client.
Most of the time it works really well but every once in a while i get the following error:

Traceback (most recent call last):
  File "/home/user/tornado/ioloop.py", line 238, in _run_callback
    callback()
  File "/home/user/tornado/httpclient2.py", line 148, in _handle_timeout
    pycurl.SOCKET_TIMEOUT, 0)
error: (-1, 'multi_socket_action failed')

To me it looks like multi_socket_action gets a CURLM_CALL_MULTI_PERFORM return value which it can't handle. (pycurl will raise an error if the return value is anything but CURLM_OK)

The libcurl docs contain the following phrase:
"In modern libcurls, CURLM_CALL_MULTI_PERFORM or CURLM_CALL_MULTI_SOKCET should not be returned and no application needs to care about them."

What does modern refer to, is 7.18.2 considered modern?

If so, what else might cause multi_socket_action to return CURLM_CALL_MULTI_PERFORM)?

BR,
Jacob
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-11-22

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET