-
Notifications
You must be signed in to change notification settings - Fork 20
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 WSL support via UnixSocket #14
Conversation
f6e0f24
to
345feea
Compare
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.
Nice! I assume that this is for WSL1 and not WLS2? If so, it would be nice to update the names to reflect that.
Thanks for the review! Unfortunately all of them appear to be regarding the existing coding patterns, not anything done differently in my PR. So you might want to take care of them alongside the others when you get the chance. |
Did you also see the question about WSL1 vs WSL2? |
Oh sorry, I forgot to reply to that. I guess it depends how you look at it. To my knowledge WSL2 doesn't support |
How about just adding a comment at the top of the file saying that it only works for WSL1? |
Ok sure! |
Just pushed the changes. |
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
==========================================
+ Coverage 52.02% 52.53% +0.50%
==========================================
Files 40 43 +3
Lines 4755 4955 +200
Branches 458 481 +23
==========================================
+ Hits 2474 2603 +129
- Misses 2120 2182 +62
- Partials 161 170 +9
Continue to review full report at Codecov.
|
@dlech Were you intending to merge this? |
I will test it tomorrow. |
Ah awesome, thanks! |
- Use backported UnixDomainSocketEndPoint from .NET core. - Rename UnixSocket to WslSocket since this is Windows-only. - Remove use of System.Reflection. - Use async/await instead of blocking threads. - Add unit tests. - Fix bugs discoverd by unit tests. - Add changelog entry.
I reworked this a bit to simplify the code and fix some issues. |
Handles dlech/KeeAgent#220.
Note: Please perform a security review before using this code. I only made these changes for my own personal use, so I may have paid insufficient attention to certain things (like file/socket permissions).