cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: cURL timeout in Milliseconds?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Oct 2007 16:54:53 +0200 (CEST)

On Mon, 1 Oct 2007, Suleman Butt wrote:

> But i want curl_setopt($ch2, CURLOPT_TIMEOUT, 500/1000); // 0.5 seconds or
> 500 millisecond.
>
> by doing the above, the application just hangs, so is there any other
> solution to solve this problem,i.e. seetign tiemout in milliseconds?

I figure that's an integer operation and then 500/1000 = 0.

The only solution to your problem is the CURLOPT_TIMEOUT_MS option.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-10-01