cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: socket timeouts

From: Toby Peterson <toby_at_apple.com>
Date: Tue, 29 Jun 2010 18:30:11 -0700

On Jun 29, 2010, at 6:10 PM, Ben Kibbey wrote:

> There are timeout options for DNS lookups, connecting and total
> download data but what about socket timeouts? Can this can be done via
> setsockopt(2) and SO_RCVTIMEO and as an curl_easy_setopt() option?

Set a callback with CURLOPT_SOCKOPTFUNCTION, use the callback to call setsockopt() etc.

- Toby
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET