You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/java/net/HostNameResolver.java
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/java/java-net/java-net-11.0/src/main/java11/datadog/trace/instrumentation/httpclient/JpmsInetAddressClearanceAdvice.java
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,6 @@ public static void openOnReturn() {
14
14
// The code of this advice is inlined into the constructor of InetAddress (java.base),
15
15
// so it will work. Moving the same call to a helper class won't.
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/java/java-net/java-net-11.0/src/test/groovy/datadog/trace/instrumentation/httpclient/JpmsInetAddressForkedTest.groovy
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ class JpmsInetAddressForkedTest extends InstrumentationSpecification {
18
18
*/
19
19
def"instrumentation opens java.net so hostname is resolved correctly when IP is shared"() {
20
20
given:
21
+
// emulate an early initialisation
22
+
HostNameResolver.hostName(null, "192.0.2.1")
21
23
def ip = [192, 0, 2, 1] asbyte[] // TEST-NET, will never appear in real DNS cache
0 commit comments