cURL / Mailing Lists / curl-library / Single Mail



From: Stefan Krause <>
Date: Tue, 25 Sep 2007 21:04:08 +0200


I use the option CURLOPT_OPERATION_TIMEOUT for limiting curl operations.
When I do a HTTP GET with that option set, to a small timeout and the
data to receive is large, curl aborts the operation with a statement
similar to "...aborted after X seconds with 100 from 200 bytes
received". That is quite undesirable, because the transfer is running
fine, just the timeout is to small. Normally you don't know the size of
the data which is received (me not in my use case).
Is there an user configurable timeout option available with the
following logic: In case no data has been received for X seconds over
the socket connection, the transfer aborts? Then a large amount of data
could be transferred without aborting a perfect running operation.


Received on 2007-09-25