We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599c577 commit e021be7Copy full SHA for e021be7
content/docs/tutorials/basic/ruby.md
@@ -273,6 +273,9 @@ s = GRPC::RpcServer.new
273
s.add_http2_port(port, :this_port_is_insecure)
274
GRPC.logger.info("... running insecurely on #{port}")
275
s.handle(ServerImpl.new(feature_db))
276
+# Runs the server with SIGHUP, SIGINT and SIGQUIT signal handlers to
277
+# gracefully shutdown.
278
+# User could also choose to run server via call to run_till_terminated
279
s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])
280
```
281
As you can see, we build and start our server using a `GRPC::RpcServer`. To do
0 commit comments