Adding lines to make the curl call asynchronous, to make the load of the draft case faster.
This commit is contained in:
jennydmz
2015-12-18 09:57:40 -04:00
parent cc45b39b15
commit d818c95405

View File

@@ -1,4 +1,5 @@
<?php
session_start();
require_once (dirname(__FILE__) . '/../../../gulliver/system/class.bootstrap.php');
$gmailToken = $_GET['gmailToken'];
@@ -123,6 +124,8 @@ if ($action == "draft"){
curl_setopt( $curlApp, CURLOPT_RETURNTRANSFER, true);
curl_setopt( $curlApp, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt( $curlApp, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt( $curlApp, CURLOPT_FRESH_CONNECT, true);
curl_setopt( $curlApp, CURLOPT_TIMEOUT_MS, 1);
$curl_response_app = curl_exec( $curlApp );
curl_close( $curlApp );