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

Don't set TCP_NO_DELAY socket option for Unix sockets. #45978

Conversation

robert-ancell
Copy link
Contributor

This is not supported for this socket type and will generate a "Operation not supported" exception.

Fixes #45977

This is not supported for this socket type and will generate a "Operation not supported" exception.

Fixes dart-lang#45977
@google-cla google-cla bot added the cla: yes label May 10, 2021
@mraleph
Copy link
Member

mraleph commented May 11, 2021

Thank you for the contribution. Gerrit review is at https://dart-review.googlesource.com/c/sdk/+/199122

Please add a regression test. Location for a test would be ./tests/standalone/io/http_*_test.dart, you can look at how other tests in the same folder are structured.

@a-siva
Copy link
Contributor

a-siva commented May 13, 2021

Thank you for your contribution @robert-ancell I have included your changes along with some test cases here https://dart-review.googlesource.com/c/sdk/+/199640

dart-bot pushed a commit that referenced this pull request May 14, 2021
…ockets

- setting of UNIX-DOMAIN socket options was not throwing the correct error
- listen in HTTPServer was trying to set TCP_NODELAY for UNIX-DOMAIN sockets

Fixes :
 #45977
 #45978
 #45975

TEST=new test cases added

Change-Id: Ie0341f26b1ba0f9423c08a8de968053a2af1c730
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199640
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
@a-siva a-siva closed this May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpServer fails to work with Unix sockets
3 participants