-
Couldn't load subscription status.
- Fork 8k
ext/sockets: socket_create_listen update. #13854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
296f464 to
070ebbc
Compare
|
I don't know what the real consequences are for applications that expect the default to be 128, and therefore don't pass the argument. |
|
The doc never mentions 128, it was kind of enough back in the day. However the doc does mention SOMAXCONN can be passed I just made it default. Besides, for Haiku, SOMAXCONN is 32. |
|
Well, it looks like the docs have the 128 in the signature, so people could theoretically rely on that limit. php-src/ext/sockets/sockets.stub.php Line 1881 in 070ebbc
|
070ebbc to
65c4725
Compare
UPGRADING
Outdated
| . pg_select, the conditions arguments accepts an empty array and is optional. | ||
|
|
||
| - Sockets: | ||
| . socket_create_listen backlog argument default value had been changed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this?
| . socket_create_listen backlog argument default value had been changed to | |
| . Parameter $backlog of socket_create_listen() now has a default value of SOMAXCONN. | |
| Previously, it was 128. |
65c4725 to
f61d614
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I cannot guess the BC impact of this change, but personally, I'm fine with it.
|
I did similar-ish change in the rust std library about 2 years ago (and you can t even change the backlog value there), seems alright I m relatively confident. Anyhow, on libc like musl, SOMAXCONN is still 128 ;) |
going from 128 to system's SOMAXCONN by default to be able to increase the queue of connections to be handled. Also, for Haiku SOMAXCONN is only 32.
f61d614 to
6f48fd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, sounds good then; thanks!
going from 128 to system's SOMAXCONN by default to be able to increase the queue of connections to be handled.