curl-users
could a call to curl_simple_request() block forever?
From: Dan Searle <dan_at_adelix.com>
Date: Thu, 30 Mar 2006 16:09:09 +0100
Date: Thu, 30 Mar 2006 16:09:09 +0100
Hi,
I have implemented a program which uses CURL to make HTTPS (SSL) POST
requests. The program is a non interactive daemon process, so it needs
to be 100%, my question is...
Can a call to curl_simple_request() potentially block forever, i.e.
perhaps when a write() or read() call blocks and there's a problem
with the underlying socket.
If so I could implement an alarm call to force the forked process
which is handling the request to die (by calling _exit() from within
the SIGALARM signal handler. I don't want to have to do this if it's
not required, i.e. curl_simple_request() has a timeout feature already
implemented.
Thanks in advance, Dan...
-- Dan Searle Adelix Ltd dan.searle_at_adelix.com web: www.adelix.com tel: 0845 230 9590 / fax: 0845 230 9591 / support: 0845 230 9592 snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK. Any views expressed in this email communication are those of the individual sender, except where the sender specifically states them to be the views of a member of Adelix Ltd. Adelix Ltd. does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors or interference.Received on 2006-03-30