File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
gax-java/gax/src/main/java/com/google/api/gax/rpc Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,17 @@ private String determineEndpoint() throws IOException {
309
309
/** Determine if S2A can be used */
310
310
@ VisibleForTesting
311
311
boolean shouldUseS2A () {
312
+ // If running on windows or macos intel, skip S2A. S2A has runtime
313
+ // dependency on netty-tcnative which is dropping support on these platforms.
314
+ // https://github.com/netty/netty-tcnative/issues/898
315
+ // https://github.com/netty/netty-tcnative/issues/897
316
+ if (System .getProperty ("os.name" ).contains ("Windows" ) ||
317
+ (System .getProperty ("os.name" ).contains ("OS X" )
318
+ && System .getProperty ("os.arch" ).contains ("x86_64" ))) {
319
+ return false ;
320
+ }
321
+
322
+
312
323
// If mTLS endpoint is not available, skip S2A
313
324
if (Strings .isNullOrEmpty (mtlsEndpoint ())) {
314
325
return false ;
You can’t perform that action at this time.
0 commit comments