This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ee1eb4ffe3 Fix hanging test
ee1eb4ffe3 is described below
commit ee1eb4ffe32b5788f0a7b3f6454a85772b8363dc
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 14 20:06:04 2024 +0100
Fix hanging test
---
test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
b/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
index ac709fe1d2..1a63346831 100644
--- a/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
+++ b/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
@@ -187,6 +187,10 @@ public class TestSocketServerAnyLocalAddress extends
AbstractJniTest {
Enumeration<NetworkInterface> networkInterfaces =
NetworkInterface.getNetworkInterfaces();
while (networkInterfaces.hasMoreElements()) {
NetworkInterface networkInterface =
networkInterfaces.nextElement();
+ if (networkInterface.isPointToPoint()) {
+ // Skip point to point networks such as VPN tunnels
+ continue;
+ }
if (networkInterface.isUp()) {
Enumeration<InetAddress> inetAddresses =
networkInterface.getInetAddresses();
while (inetAddresses.hasMoreElements()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]