From 368037d4a4839d7ba701ca76b387ed18a9fa7cf3 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 1 Nov 2017 15:00:44 +0000 Subject: more memory limit --- src/.htaccess | 2 +- src/fextdata.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/.htaccess b/src/.htaccess index dbafa30..7c89b5b 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,5 +1,5 @@ php_flag output_buffering on -php_value memory_limit 256M +php_value memory_limit 1024M php_value post_max_size 128M php_flag magic_quotes_gpc off php_value upload_max_filesize 128M diff --git a/src/fextdata.php b/src/fextdata.php index 7e95977..1046f29 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -26,7 +26,7 @@ function makeurlhttps($siteurl) { return $siteurl; } -function scoretransfer($putname, $localsite, $timeo=30) { +function scoretransfer($putname, $localsite, $timeo=20) { $ds = DIRECTORY_SEPARATOR; if($ds=="") $ds = "/"; $logstr=''; @@ -246,7 +246,7 @@ function scoretransfer($putname, $localsite, $timeo=30) { } -function getMainXML($contest,$timeo=30,$upd=false) { +function getMainXML($contest,$timeo=20,$upd=false) { $ds = DIRECTORY_SEPARATOR; if($ds=="") $ds = "/"; $logstr = ''; @@ -377,7 +377,7 @@ function getMainXML($contest,$timeo=30,$upd=false) { $opts['ssl'] = array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true); $opts['https'] = array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true); $context = stream_context_create($opts); - $logstr .= "Transfering data to main server\n"; + $logstr .= "Transferring data to main server\n"; try { $s = @file_get_contents($siteurl . "site/getsite.php", 0, $context); } catch(Exception $e) { @@ -385,7 +385,7 @@ function getMainXML($contest,$timeo=30,$upd=false) { } // $logstr .= "ABB: " . now() . "\n" if($s===false) { - $logstr .= "timeout at transfering\n"; + $logstr .= "timeout at transferring\n"; LOGError("getMainXML: timeout at transfer for $siteurl"); return $logstr; } -- cgit v1.2.3