-
Notifications
You must be signed in to change notification settings - Fork 178
RUST-802 Support Unix Domain Sockets #908
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
365b562
to
fc38501
Compare
fc38501
to
26516f8
Compare
I've tested this and this works fine now. Could you please review & merge this and then release a new version? This feature is very important for us! Thanks! |
04f6181
to
dad77ec
Compare
Hi! Thanks for contributing! The changes look good, I've authorized an evergreen run and assuming that passes (modulo known flakes) I'll merge this. I'll need to check in with the rest of the team about the release schedule and get back to you on that. |
It looks like you missed some match arms:
|
Sorry, seems that I've missed some of the features. |
Fixed now. |
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.
Looks good! Tagging in Isabel while evergreen finishes its run.
Seems that there's still some error with the ci, but I'm not able to see the log. |
Seems that those tests had been failed for a long time? |
Yeah, the failures it's showing are known flakes or other issues and nothing to do with your PR :) |
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.
Thanks for the contribution! I have a few requests/suggestions. We should also unskip the spec tests for this (src/client/options/test.rs:46
).
src/client/executor.rs
Outdated
@@ -99,7 +99,7 @@ impl Client { | |||
op: T, | |||
session: impl Into<Option<&mut ClientSession>>, | |||
) -> Result<ExecutionDetails<T>> { | |||
Box::pin(async { |
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.
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.
Thanks for this explanation!
I wonder if this can bring performance gain if we reduce the size of futures?
AFAIK, using Box here will bring runtime cost and make the compiler unable to inline this future.
Thanks for addressing my comments! It looks like the tests still need to be unskipped in the file I mentioned in my above comment. You can grep
|
@isabelatkinson Sorry, I missed that part about tests in the previous comment, I've added them on unix platform.
I didn't find similar tests for ipv4, and I think those tests may also fail on ipv4. I'm not quite familiar with the mongodb specs, could you please help me to fix those tests? Thanks! |
![]()
Let me know if you have more specific details about the failures you're encountering and I'd be happy to help you look into them further! |
Hi, thank you very much! |
75e13c8
to
c495b58
Compare
Branch rebased to latest main. |
Hi @PureWhiteWu, I will be OOO for the rest of the week but I will get back to you next week! |
Hi @PureWhiteWu, I spent some time running these tests locally and fixed a couple of unrelated bugs that were causing the errors you're seeing. Would you mind if I pushed the changes up to your branch? (You'll of course still get credit for this PR in our git history). |
@isabelatkinson Certainly not! Feel free to change anything on this branch~ |
Hi @PureWhiteWu, I've pushed a few changes that have fixed up the errors you were seeing. Thank you again for your contribution! I'm going to tag in @abr-egn for one final review and then this should be good to merge 🙂 |
@isabelatkinson Thank you very much for helping me to fix these errors! |
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!
Thank you again! This will go out with our next release. |
This pull request adds support for Unix Domain Sockets.
This pull request also removes some minor unnecessary
Box::pin
.Implements #686