# missing old features for new socket streams

- Thread: https://externals.io/message/12031
- Original archive: https://news-web.php.net/php.internals/12031
- Started by Ron Korving on 2004-08-09T07:01:43+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12031 — Ron Korving — 2004-08-09T07:01:43+00:00

URL: https://externals.io/message/12031#12031

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

---

## #12032 — Wez Furlong — 2004-08-09T07:19:20+00:00

URL: https://externals.io/message/12031#12032 · In reply to: #12031

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.


> 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?

---

## #12050 — Andi Gutmans — 2004-08-10T07:19:48+00:00

URL: https://externals.io/message/12031#12050 · In reply to: #12031

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.
>
>
> > […]
> with
> > […]
> anyone
> > […]

---

## #12052 — Ron Korving — 2004-08-10T07:28:38+00:00

URL: https://externals.io/message/12031#12052 · In reply to: #12050

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:
> > […]
but
> > […]
Is
> > […]
of
> > […]
socket-stream
> > […]
