cURL / Mailing Lists / curl-library / Single Mail

curl-library

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