Skip to content

Commit

Permalink
Misc fixes for production environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Nov 15, 2010
1 parent da14b3b commit 2d04ee3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/Bal/Bootstrap.php
Expand Up @@ -635,6 +635,7 @@ protected function _initModules ( ) {
*/
protected function _initScriptSetup ( ) {
# Bootstrap
$this->bootstrap('locale');
$this->bootstrap('modules');

# Return true
Expand All @@ -647,6 +648,7 @@ protected function _initScriptSetup ( ) {
*/
protected function _initScriptCron ( ) {
# Bootstrap
$this->bootstrap('locale');
$this->bootstrap('modules');
$this->bootstrap('DoctrineListeners');
$this->bootstrap('frontController');
Expand Down
2 changes: 1 addition & 1 deletion lib/Bal/Service/GoogleClosure.php
Expand Up @@ -107,7 +107,7 @@ protected function _sendRequestCurl ( $data ) {
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 30,
CURLOPT_TIMEOUT => 60,
CURLOPT_POSTFIELDS => $data
);

Expand Down
2 changes: 1 addition & 1 deletion lib/core/functions/_url.funcs.php
Expand Up @@ -136,7 +136,7 @@ function regen_url ( $params = NULL, $amp = '&' ) {
*/
function is_connected ( $url = 'www.google.com' ) {
$result = false;
$connected = fsockopen($url, 80, $errno, $errstr, 1);
$connected = fsockopen($url, 80, $errno, $errstr, 5);
if ( $connected ){
$result = true;
fclose($connected);
Expand Down

0 comments on commit 2d04ee3

Please sign in to comment.