aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2016-08-01 07:27:03 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-08-01 08:08:02 +0000
commitfa9562fc525910e56bda0335187c50efcb166307 (patch)
treee88848038c8c61d567bd8bc5210df3a7df92c8f1 /src
parent722d03c2f6958ca942eb0efed85cb4fbcebdfb92 (diff)
Make the default way of communication between client and the server gRPC instead of AF_UNIX.
-- MOS_MIGRATED_REVID=128962306
Diffstat (limited to 'src')
-rw-r--r--src/main/cpp/blaze.cc2
-rw-r--r--src/main/cpp/blaze_startup_options_common.cc2
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc
index afb701d787..7fb3511a0a 100644
--- a/src/main/cpp/blaze.cc
+++ b/src/main/cpp/blaze.cc
@@ -486,7 +486,7 @@ static vector<string> GetArgumentArray() {
result.push_back("--batch");
}
- if (globals->options.command_port != -1) {
+ if (globals->options.command_port != 0) {
result.push_back(
"--command_port=" + ToString(globals->options.command_port));
}
diff --git a/src/main/cpp/blaze_startup_options_common.cc b/src/main/cpp/blaze_startup_options_common.cc
index e6797a17ee..449907b4a2 100644
--- a/src/main/cpp/blaze_startup_options_common.cc
+++ b/src/main/cpp/blaze_startup_options_common.cc
@@ -55,7 +55,7 @@ void BlazeStartupOptions::Init() {
// 3 hours (but only 15 seconds if used within a test)
max_idle_secs = testing ? 15 : (3 * 3600);
oom_more_eagerly_threshold = 100;
- command_port = -1;
+ command_port = 0;
oom_more_eagerly = false;
watchfs = false;
invocation_policy = NULL;
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
index 442b53303c..1721bb5b52 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
@@ -248,7 +248,7 @@ public class BlazeServerStartupOptions extends OptionsBase {
public String invocationPolicy;
@Option(name = "command_port",
- defaultValue = "-1",
+ defaultValue = "0",
category = "undocumented",
help = "Port to start up the gRPC command server on. If 0, let the kernel choose. If -1, "
+ "use a custom protocol on an AF_UNIX socket.")