From c810613e957d113c8f0eff8457c766916f527981 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 5 Sep 2017 23:36:18 -0300 Subject: [PATCH] Aumento do timeout na função de busca de dados do visualizador da INDE --- ferramentas/vinde/wmsindejson.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/ferramentas/vinde/wmsindejson.php b/ferramentas/vinde/wmsindejson.php index c99aa4a..df19f13 100755 --- a/ferramentas/vinde/wmsindejson.php +++ b/ferramentas/vinde/wmsindejson.php @@ -12,9 +12,11 @@ if(!file_exists($arq)){ echo "erro curl_init"; exit; } + set_time_limit(0); curl_setopt($ch, CURLOPT_URL, "http://www.visualizador.inde.gov.br/"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_TIMEOUT, 120); if(isset($i3geo_proxy_server) && $i3geo_proxy_server != ""){ curl_setopt($ch, CURLOPT_PROXY, $i3geo_proxy_server); } -- libgit2 0.21.2