From bc15ede59f330ba6f41da754d68a6d44fb7e0237 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 20 Nov 2007 14:54:54 +0000 Subject: Individual read operation timeout respects small totaltimeout now. Note: totaltimeout preferable, should we rename parameters? --- it_url.class | 1 + 1 file changed, 1 insertion(+) diff --git a/it_url.class b/it_url.class index f556ebb..cb0f0c9 100644 --- a/it_url.class +++ b/it_url.class @@ -243,6 +243,7 @@ function get($p=null, $timeout=5) $url->result = $result = false; unset($url->data); $url->headers = array(); + $p['timeout'] = min($p['timeout'], $p['totaltimeout']); # No operation may be longer than totaltimeout $endtime = time() + $p['totaltimeout']; if ($url->protocol == 'http') -- cgit v1.2.3