-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch SocketException instead of BindException to handle disabled IPv6
**Problem:** `StarlarkDebugServerTest` and `DebugServerTransportTest` fails with error `java.net.SocketException: Protocol family unavailable` in some enviroments. **Explanation:** If IPv6 is disabled in docker container ServerSocket fails to bind to ::1 with `java.net.SocketException`. But bazel tests falls back to IPv4 only if `java.net.BindException` (subclass of `java.net.SocketException`) occurs. Let's catch more generic `java.net.SocketException` Closes #11400. PiperOrigin-RevId: 311721734
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
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