core: Add support for the AppEngine development sandbox

This commit is contained in:
Fred Wulff 2017-04-24 11:15:58 -07:00 committed by Eric Anderson
parent b6bf252566
commit ba1c4bf4ac
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ public final class GrpcUtil {
public static final Charset US_ASCII = Charset.forName("US-ASCII");
// Certain production AppEngine runtimes have constraints on threading and socket handling
// AppEngine runtimes have constraints on threading and socket handling
// that need to be accommodated.
public static final boolean IS_RESTRICTED_APPENGINE =
"Production".equals(System.getProperty("com.google.appengine.runtime.environment"))
System.getProperty("com.google.appengine.runtime.environment") != null
&& "1.7".equals(System.getProperty("java.specification.version"));
/**