mirror of https://github.com/grpc/grpc-java.git
core: Add support for the AppEngine development sandbox
This commit is contained in:
parent
b6bf252566
commit
ba1c4bf4ac
|
|
@ -70,10 +70,10 @@ public final class GrpcUtil {
|
||||||
|
|
||||||
public static final Charset US_ASCII = Charset.forName("US-ASCII");
|
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.
|
// that need to be accommodated.
|
||||||
public static final boolean IS_RESTRICTED_APPENGINE =
|
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"));
|
&& "1.7".equals(System.getProperty("java.specification.version"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue