Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you use the persistent connection ou should use as well the keep-alive, as without keep Alive HTTP 1.1 connexion your <em>persitent</em> will have to do a lot of work to emulate the job.</p> <p><strong>Edit :</strong> (it was time to eat)</p> <p><strong>Keepalive</strong> settings talks about a quite-<strong>short time</strong> setting, set by the server. Apache by default handle <strong>15s</strong> for Keep-Alive requests, but a current optimized setting is 5s. This is mostly done to help HTTP client downloading js and css attached to a page in the same HTTP connexion. If you can adjust the server settings you can try longest Keep-Alive queries (but be careful, this will limit seriously the number of client accepeted by your server).</p> <p><strong>Persistent connexion</strong> mode is done to really emulate a long-term persistent connexion, the socket opened is not closed at the end of the script. You should be very careful with such setting. Are you in CLI mode? FCGI?. If you're running in an apache process I'm really not sure you'll get the same connexion on the next request on this script (which will may be handle by another apache process), it's even worst if your code is running on several apache servers in a large deployment. And this is for the client (PHP) side, but it can be as well a big pain for the targeted server.</p> <p><strong>Re-edit</strong>: (as something about SSL must be said)</p> <p>Are you sure you need to optimize SSL negociation time? SSL use Cache, at least on server side, to limit the negociation to the first request. Client side caching of SSL session is maybe done by the PHP <strong>stream_socket_client</strong> function (which is used by the Zend class. If not you could test a new class from your own (just need to implement the interface) and try using curl, as curl use SSL session caching by default.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload