-
Notifications
You must be signed in to change notification settings - Fork 305
Add JDK built-in support for UDS on Java 16+ #8314
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ec126c8
Use the JDK's built-in support for Unix Domain Sockets on Java 16+
mcculls 87425f1
First draft of timeout test.
sarahchen6 1634bcd
Add server to test.
sarahchen6 683e7c1
Fix build.gradle file.
sarahchen6 662602a
Add debugging statements.
sarahchen6 64da205
Second draft of timeout test.
sarahchen6 953f3e8
Update getInputStream to use a selector.
sarahchen6 d07fc19
Clean code.
sarahchen6 2aec0e7
Adjust dd-java-agent build.gradle.
sarahchen6 ea9a237
Revert dd-java-agent build.gradle change
mcculls e475abd
Revert another build.gradle change.
sarahchen6 38b98db
Try specifying setSrcDirs.
sarahchen6 5ae79f9
Try changing compatibility version.
sarahchen6 e80ce7e
Revert previous two changes.
sarahchen6 6c188d9
Avoid implementation dependency for Java17.
sarahchen6 dda0997
Make gradle dependency more specific and add testImplementation to so…
sarahchen6 412e4d3
Add synchronization to ensure that server starts before client connects.
sarahchen6 381f841
Try this...
sarahchen6 beba316
Add print statements.
sarahchen6 305d9af
Add catch statement.
sarahchen6 8ff0eab
Refactor getInputStream and getOutputStream.
sarahchen6 0251e37
Address PR comments.
sarahchen6 114d230
Add test for when timeout is 0.
sarahchen6 37ca729
Add config option.
sarahchen6 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,8 +1,31 @@ | ||
ext { | ||
minJavaVersionForTests = JavaVersion.VERSION_17 | ||
} | ||
|
||
apply from: "$rootDir/gradle/java.gradle" | ||
apply plugin: "idea" | ||
|
||
[compileMain_java17Java, compileTestJava].each { | ||
it.configure { | ||
setJavaVersion(it, 17) | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.slf4j | ||
implementation project(':internal-api') | ||
implementation libs.jnr.unixsocket | ||
testImplementation files(sourceSets.main_java17.output) | ||
} | ||
|
||
forbiddenApisMain_java17 { | ||
failOnMissingClasses = false | ||
} | ||
|
||
implementation group: 'com.github.jnr', name: 'jnr-unixsocket', version: libs.versions.jnr.unixsocket.get() | ||
idea { | ||
module { | ||
jdkName = '17' | ||
} | ||
} |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.