-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix Socket remoteAddress obtaining on Win32 #51778 #51981
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
Initial issue #51778 |
Thank you for your contribution. This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at: https://dart-review.googlesource.com/c/sdk/+/294220 Please wait for a developer to review your code review at the above link. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly. You can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code and they will help you. You can also push additional commits to this pull request to update the code review. |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
Hi @slonm thanks for the contribution; can you please rebase it? |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
Hi @mit-mit, I've resolved the conflict but not sure whether I've done things right regarding rebasing. Let me know if there is something wrong |
Thanks. Stay tuned for comments in the dart-review link. |
@slonm There are comments at https://dart-review.googlesource.com/c/sdk/+/294220 |
@brianquinlan - should I do something with it? |
@slonm That's up to you. There are two ways that we can go here:
Let me know which you'd prefer. |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
Performed code review. Agreed with most of suggestions |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
1 similar comment
https://dart-review.googlesource.com/c/sdk/+/294220 has been updated with the latest commits from this pull request. |
Looks
getpeername()
is broken when it used afterAcceptEx()
. I found a couple mentions of such issue but it's strange that they are pretty old:https://www.codeproject.com/Messages/540371/Re-Win2K-AcceptEx-amp-amp-getpeername
https://alt.winsock.programming.narkive.com/ZUX8KVbu/so-update-accept-context-usage
I've implemented the workaround and call
GetAcceptExSockaddrs()
instead of getpeername() immediately after socket connection accept.Now Unit test
tests\standalone_2\io\socket_info_ipv6_test.dart
is passed without errors.