diff options
author | 2016-04-14 08:29:05 +0000 | |
---|---|---|
committer | 2016-04-14 11:11:15 +0000 | |
commit | 8b3b918ebd55911a3102f5ea6da60906fa63c866 (patch) | |
tree | 5441d1a77d4f89a3450523979b49f8aa63fe4596 /src/main/cpp/blaze_startup_options.h | |
parent | 386f242788a3d0189e6882466105c57ec1149d20 (diff) |
Add the --grpc_port startup option and start a Java server if it's passed in.
Note that the presence of server/grpc_port does not guarantee that the server actually listens to it and we can't guarantee it, either, because it can always be kill -9'd.
I haven't decided yet how the transition between AF_UNIX and gRPC will work. For now, I'm happy that we can start up a Java server.
The way to get the kernel-chosen port is truly awful, but it is apparently impossible to do so in a different way:
https://github.com/grpc/grpc-java/issues/72
--
MOS_MIGRATED_REVID=119828354
Diffstat (limited to 'src/main/cpp/blaze_startup_options.h')
-rw-r--r-- | src/main/cpp/blaze_startup_options.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/cpp/blaze_startup_options.h b/src/main/cpp/blaze_startup_options.h index 41629b2f9b..d44cbbee4c 100644 --- a/src/main/cpp/blaze_startup_options.h +++ b/src/main/cpp/blaze_startup_options.h @@ -210,8 +210,9 @@ class BlazeStartupOptions { // the --host_javabase option. string GetHostJavabase(); - // Port for web status server, 0 to disable - int webstatus_port; + // Port for gRPC command server. 0 means let the kernel choose, -1 means no + // gRPC command server. + int grpc_port; // Invocation policy proto. May be NULL. const char* invocation_policy; |