Skip to content
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

Add SO_LINGER option for streams #14111

Open
sezeryalcin opened this issue May 2, 2024 · 1 comment
Open

Add SO_LINGER option for streams #14111

sezeryalcin opened this issue May 2, 2024 · 1 comment

Comments

@sezeryalcin
Copy link

Description

stream_context_set_option() function currently does not list/support socket layer SO_LINGER option. Adding this, and probably any other socket options to streams will improve stream functionality.

$conn = @stream_socket_accept(9999, 0)
$stream_opts = [
'socket' => ['so_linger' => 0 ]
];
stream_context_set_option($conn, $stream_opts);

@sezeryalcin
Copy link
Author

Current list is limited
https://www.php.net/manual/en/context.socket.php

devnexen added a commit to devnexen/php-src that referenced this issue May 4, 2024
devnexen added a commit to devnexen/php-src that referenced this issue May 4, 2024
devnexen added a commit to devnexen/php-src that referenced this issue May 4, 2024
devnexen added a commit to devnexen/php-src that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant