Re: Some questions regarding pfsocketopen()

From: Date: Thu, 02 Jan 2003 19:47:01 +0000
Subject: Re: Some questions regarding pfsocketopen()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129980@lists.php.net to get a copy of this message
--- Gareth Hastings <gareth@netgs.co.uk> wrote: > Could anyone tell me, is it possible to connect to > a persistent socket after it has been opened by a > different script? Sure. Think of it like a persistent database connection in Oracle, where the listener is on socket 1521 for everyone. The persistent part saves you from the 3-way handshake when you use the same socket on subsequent page requests. The only caveat is that you can only do one thing at a time, but this is typically handled for you at a lower level in the form of a queue. If I remember correctly, you can specify the size of the queue in your function call(s). Chris

« previous php.general (#129980) next »