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 #3363

Closed
sezeryalcin opened this issue May 2, 2024 · 0 comments
Closed

Add SO_LINGER option for streams #3363

sezeryalcin opened this issue May 2, 2024 · 0 comments

Comments

@sezeryalcin
Copy link

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 sezeryalcin closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant