|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-08-30 14:27 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Description: ------------ Please, add function stream_socket_listen(resource,backlog): it should call listen() for the socket created by stream_socket_server beforehand. I need to use stream_socket_server but I can not use socket_*, because of libevent. Also, it would be nice to have a stream_socket_set_option function, which allows to apply SO_REUSE and other parameters. Thanks. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Here is the reason for the backlog option. In this example, the default backlog of my system is 128: sysctl -a | grep somaxconn net.core.somaxconn = 128 I setup a stream_socket_server on port 2057 and I have this: ss -lnp | grep "2057" tcp LISTEN 0 32 *:2057 *:* users:(("php",pid=11297,fd=7)) You see, I have no way to set it. It's that simple.