Skip to content

Commit

Permalink
Sometimes ssl connections are slow. Increase max_execution_time to 5 …
Browse files Browse the repository at this point in the history
…minutes.
  • Loading branch information
ethem committed Jul 24, 2006
1 parent 87cb44a commit 5eeebef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion enrol/authorize/authorizenetlib.php
Expand Up @@ -11,6 +11,7 @@
define('AN_ENCAP', '"');

require_once('const.php');
require_once('enrol.php');

/**
* Gets settlement date and time
Expand Down Expand Up @@ -234,7 +235,12 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE)
return false;
}

@ignore_user_abort(true); // this is critical section
// critical section
@ignore_user_abort(true);
if (intval(ini_get('max_execution_time')) > 0) {
@set_time_limit(300);
}

fwrite($fp, "POST /gateway/transact.dll HTTP/1.0\r\n" .
"Host: $host\r\n" . $referer .
"Content-type: application/x-www-form-urlencoded\r\n" .
Expand Down
1 change: 0 additions & 1 deletion enrol/authorize/locallib.php
Expand Up @@ -5,7 +5,6 @@
}

require_once('const.php');
require_once('enrol.php');
require_once('authorizenetlib.php');

define('ORDER_CAPTURE', 'capture');
Expand Down

0 comments on commit 5eeebef

Please sign in to comment.