missing old features for new socket streams

php.internals

Ron Korving

22 years ago
Hi, I'm using the socket stream and it seems to work just great for me, but with the stream_socket functions some original socket features seem lost. Is there any way to work around this? Maybe there is need for a stream_socket_set_option function? I personally bumped into this lack of features when I wanted to set my listen queue length on a socket-stream server. How can this be done? And if this is simply impossible, could anyone tell me what this default new queue length is? Thank you, Ron

Wez Furlong

22 years ago
The listen(2) backlog? It defaults to 5, and there is no way to alter this, yet. Exposing more lower level features is a TODO item; you're welcome to suggest which ones you need. --Wez. On Mon, 9 Aug 2004 09:01:43 +0200, Ron Korving <r.korving@xit.nl> wrote:

Andi Gutmans

22 years ago
IIRC, quite a few OSs also ignore whatever you pass to listen() At 08:19 AM 8/9/2004 +0100, Wez Furlong wrote:

Ron Korving

22 years ago
If that's the case (actually, if it's the case for Linux which I personally only care about), then I guess I won't miss it :) I was thinking maybe a stream_socket_set_option() would be nice, but I personally only used it to for SO_REUSEADDR, which seems to be default behaviour for a socket stream now anyway. Ron "Andi Gutmans" <andi@zend.com> schreef in bericht news:5.1.0.14.2.20040810001932.0291ed68@127.0.0.1...
> > IIRC, quite a few OSs also ignore whatever you pass to listen() > > At 08:19 AM 8/9/2004 +0100, Wez Furlong wrote: > >The listen(2) backlog? It defaults to 5, and there is no way to alter > >this, yet. > > > >Exposing more lower level features is a TODO item; you're welcome to > >suggest which ones you need. > > > >--Wez. > > > >On Mon, 9 Aug 2004 09:01:43 +0200, Ron Korving <r.korving@xit.nl> wrote: > > > Hi, > > > > > > I'm using the socket stream and it seems to work just great for me,
but
> > with > > > the stream_socket functions some original socket features seem lost.
Is
> > > there any way to work around this? Maybe there is need for a > > > stream_socket_set_option function? I personally bumped into this lack
of
> > > features when I wanted to set my listen queue length on a
socket-stream