ajax - Reuse https connection with libcurl (PHP) -


i have server , multiple servers behind in local network server (server has connection outside)

server has webpage multiple ajax request script this

  //get myserverb_ip database   ...   $url = "https://myserverb_ip/someurl.php"     $ch = curl_init();   curl_setopt($ch,curl_version_ssl,true);   curl_setopt($ch, curlopt_ssl_verifypeer, false);   curl_setopt($ch, curlopt_url, $url);   curl_setopt($ch, curlopt_connecttimeout, 5);   curl_setopt($ch, curlopt_fresh_connect, false);   curl_setopt ($ch, curlopt_timeout,30);   curl_setopt($ch, curlopt_cookiejar, '/tmp/sess.txt');   curl_setopt($ch, curlopt_cookiefile, '/tmp/sess.txt');   curl_exec($ch);   ...  

with http, worked fine, when adding https there big delay because every single ajax call requests new key exchange serverb

there way reuse connection avoid key exchange in every request ?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -