module GRPC
GRPC is the general RPC module
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC contains the General RPC module.
GRPC is the general RPC module
GRPC is the general RPC module
GRPC is the general RPC module
Configure its logging for fine-grained log control during test runs
Constants
- VERSION
Public Class Methods
Handles the signals in $grpc_signals.
@return false if the server should exit, true if not.
# File src/ruby/lib/grpc/generic/rpc_server.rb, line 43 def handle_signals loop do sig = $grpc_signals.shift case sig when 'INT' return false when 'TERM' return false when nil return true end end true end
Sets up a signal handler that adds signals to the signal handling global.
Signal handlers should do as little as humanly possible. Here, they just add themselves to $grpc_signals
RpcServer (and later other parts of gRPC) monitors the signals $grpc_signals in its own non-signal context.
# File src/ruby/lib/grpc/generic/rpc_server.rb, line 66 def trap_signals %w(INT TERM).each { |sig| trap(sig) { $grpc_signals << sig } } end
Private Instance Methods
Handles the signals in $grpc_signals.
@return false if the server should exit, true if not.
# File src/ruby/lib/grpc/generic/rpc_server.rb, line 43 def handle_signals loop do sig = $grpc_signals.shift case sig when 'INT' return false when 'TERM' return false when nil return true end end true end
Sets up a signal handler that adds signals to the signal handling global.
Signal handlers should do as little as humanly possible. Here, they just add themselves to $grpc_signals
RpcServer (and later other parts of gRPC) monitors the signals $grpc_signals in its own non-signal context.
# File src/ruby/lib/grpc/generic/rpc_server.rb, line 66 def trap_signals %w(INT TERM).each { |sig| trap(sig) { $grpc_signals << sig } } end