diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 1 |
1 files changed, 1 insertions, 0 deletions
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') |