curl-and-php
Re[4]: Persistent SSL sessions ?
Date: Wed, 12 Feb 2003 14:48:14 +0100
Andrew,
  reuse  of  the  same  handle  while in the same PHP script execution
  works  fine  for  me  too. You open the connection then do a few SSL
  requests   through  that  connection  so  that  there  is  only  one
  connection establishment and one SSL handshake.
  But  what  i'm  talking about is a global ssl session id cache which
  would  allow  many  instances  of  a  PHP  script  to  reuse already
  established  SSL  connections.  Something  like  the Mysql permanent
  connections.
  I  have  a few scripts which are querying very often a distant HTTPS
  web  site.  But  at each query it has to go through a new connection
  establishment and a new SSL handshake. A global SSL id session cache
  would make win some time and a lot of CPU resources.
  Alex.
AH> I actually have a client with php/mysql running on an NT box where we
AH> use cURL to post into another site.  To accomplish what we needed
AH> required 2-3 posts within the same session.  I instantiated the cURL
AH> handle once, and used the same handle for multiple posts, capturing
AH> return values each time.  
AH> I then tried the same trick on a Unix BSD server and it wouldn't work.
AH> I didn't realize it wasn't supposed to work!
AH> I think the NT was running php 4.1, and the BSD had PHP 4.2 or something
AH> like that.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-12