Commit c810613e957d113c8f0eff8457c766916f527981
1 parent
1cca6c6a
Exists in
master
and in
7 other branches
Aumento do timeout na função de busca de dados do visualizador da INDE
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
ferramentas/vinde/wmsindejson.php
... | ... | @@ -12,9 +12,11 @@ if(!file_exists($arq)){ |
12 | 12 | echo "erro curl_init"; |
13 | 13 | exit; |
14 | 14 | } |
15 | + set_time_limit(0); | |
15 | 16 | curl_setopt($ch, CURLOPT_URL, "http://www.visualizador.inde.gov.br/"); |
16 | 17 | curl_setopt($ch, CURLOPT_HEADER, 0); |
17 | 18 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
19 | + curl_setopt($ch, CURLOPT_TIMEOUT, 120); | |
18 | 20 | if(isset($i3geo_proxy_server) && $i3geo_proxy_server != ""){ |
19 | 21 | curl_setopt($ch, CURLOPT_PROXY, $i3geo_proxy_server); |
20 | 22 | } | ... | ... |