-
Notifications
You must be signed in to change notification settings - Fork 181
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
jsonrpc: implement unix handler #1362
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1362 +/- ##
==========================================
+ Coverage 73.05% 73.20% +0.14%
==========================================
Files 98 98
Lines 10101 10209 +108
==========================================
+ Hits 7379 7473 +94
- Misses 2174 2186 +12
- Partials 548 550 +2 ☔ View full report in Codecov by Sentry. |
Hey, thanks for the contribution! Do you have an immediate use case for this? Because I am not sure if the marginal speed up that IPC brings, on its own, warrants a new feature to be added over TCP. |
I usually mount the socket instead of using loopback since it saves 2(docker+interface itself) hops for containerized env and is generally easier to manage. |
Fair enough |
I'll try to review this sometime next week. May take a bit longer depending on prioritization. |
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.
Made a first pass. Should Juno be able to communicate over multiple unix sockets, each representing a different IPC connection?
Spawning a socket for each connection is overkill I believe, one is enough. Spawning multiple sockets can be considered for keeping multiple |
Understood, thanks.
That's ok, creating TCP sockets can also fail. Let's maintain consistency with websocket and http handlers, and spawn a socket for each server. |
Sorry for the two lint commits, got confused by that:
Yet the check fails without that:
|
No worries. It's flaky sometimes. Thanks for fixing. |
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 great! Works almost perfectly on my machine. Just a few minor things left.
Mind if a team member rebases and/or makes small adjustments when we're ready to merge? I'm not sure if we'll fit it into a release right away.
closes #1277