-
Notifications
You must be signed in to change notification settings - Fork 926
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 Unix domain socket support #4846
Merged
Merged
Changes from 22 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
1d3f630
Add server-side Unix domain socket support
trustin 41ee453
Address the comments from @ikhoon
trustin 999eca6
Domain socket support on macOS
trustin d473068
Lint
trustin 6ea5bee
Add `Endpoint.toSocketAddress()` and `DomainSocketAddress.asEndpoint()`
trustin 20c6709
Make `Endpoint` cache `InetSocketAddress` more aggressively / Addres…
trustin a5aa7fe
Simplify SessionProtocolNegotiationCache key generation
trustin 2ac54ad
Update core/src/main/java/com/linecorp/armeria/client/Endpoint.java
trustin 4b4c98c
Update core/src/main/java/com/linecorp/armeria/client/HttpClientFacto…
trustin 73f5d22
Address the comments from @jrhee17 / Normalize IP addresses wherever …
trustin a4b24f6
Merge branch 'main' into uds
trustin c604c9c
Merge branch 'main' into uds
trustin ff89907
Merge branch 'main' into uds
trustin 4f1d5fb
Fix an exception in `DefaultEventLoopScheduler`
trustin 3f5bc3e
Don't throw exception when setting port/IP on domain socket endpoint
trustin 9c48404
Make a domain socket endpoint always has predefined IP address and port
trustin 1d2b297
Fix Endpoint.authority()
trustin 6733934
Fix a bug in Endpoint.withHost()
trustin 92ebac1
Address the comment from @ikhoon / Add `Endpoint.{with,without}Defaul…
trustin 54aee42
Update core/src/main/java/com/linecorp/armeria/client/Endpoint.java
ikhoon 324d470
Merge branch 'main' into pr-4846-trustin-uds
ikhoon 37cbac2
resolve conflicts
ikhoon ee13b32
Remove an unused import
ikhoon 80e7329
Merge branch 'main' into uds
ikhoon a4bcd25
Merge branch 'main' into uds
trustin 5939891
Update core/src/main/java/com/linecorp/armeria/client/Endpoint.java
trustin 22f637d
Update core/src/main/java/com/linecorp/armeria/client/Endpoint.java
trustin 0e7bc01
Update core/src/main/java/com/linecorp/armeria/client/Endpoint.java
trustin fb84c46
Add `unix:` prefix to the boss thread names
trustin 7834c7d
Update core/src/main/java/com/linecorp/armeria/client/HttpChannelPool…
trustin ac354c1
Address the comment by @jrhee17
trustin 1ffd2ec
Lint
trustin 168e71c
Oops
trustin 4de1794
Lint
trustin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ public HttpResponse execute(HttpRequest req, RequestOptions requestOptions) { | |
final RequestTarget reqTarget = RequestTarget.forClient(originalPath, prefix); | ||
if (reqTarget == null) { | ||
return abortRequestAndReturnFailureResponse( | ||
req, new IllegalArgumentException("Invalid path: " + originalPath)); | ||
req, new IllegalArgumentException("Invalid request target: " + originalPath)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't always a path but can be an absolute URI, so I changed it to 'request target'. |
||
} | ||
|
||
final EndpointGroup endpointGroup; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🙇♂️