curl-library
Time-outs in libcurl
Date: Fri, 8 Sep 2006 07:27:11 +0200
Hi,
I am using libcurl in a project. I have looked last few days into the
different time-outs that curl supports and I have some questions about this.
I use curl for two things:
- normal http requests
- retrieving large files via ftp
I set the CURLOPT_TIMEOUT value to 10 minutes. This works very nicely for
normal http requests etc. but when I receive a file via ftp it also times
out after 10 minutes. This is not what I want. Then I changed timeout for
ftp to 2 hours. Now that's working fine but when no data is received because
of a server error the timeout takes 2 hours also.
Is there a way in libcurl to have it timeout after a short time when no
longer receiving data while still being able to receive large files that can
take 2 hours?
Thanks,
Richard
Received on 2006-09-08