Skip to content
Snippets Groups Projects
Commit 76733cf1 authored by murgatroid99's avatar murgatroid99
Browse files

Removed remaining references to old server handling code

parent d595fb65
No related branches found
No related tags found
No related merge requests found
...@@ -47,5 +47,3 @@ begin ...@@ -47,5 +47,3 @@ begin
ensure ensure
file.close file.close
end end
GRPC::Signals.wait_for_signals
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require 'forwardable' require 'forwardable'
require 'weakref' require 'weakref'
require_relative 'bidi_call' require_relative 'bidi_call'
require_relative '../signals'
class Struct class Struct
# BatchResult is the struct returned by calls to call#start_batch. # BatchResult is the struct returned by calls to call#start_batch.
...@@ -123,10 +122,6 @@ module GRPC ...@@ -123,10 +122,6 @@ module GRPC
@unmarshal = unmarshal @unmarshal = unmarshal
@metadata_tag = metadata_tag @metadata_tag = metadata_tag
@op_notifier = nil @op_notifier = nil
weak_self = WeakRef.new(self)
remove_handler = GRPC::Signals.register_handler(&weak_self
.method(:cancel))
ObjectSpace.define_finalizer(self, remove_handler)
end end
# output_metadata are provides access to hash that can be used to # output_metadata are provides access to hash that can be used to
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require_relative '../grpc' require_relative '../grpc'
require_relative '../signals'
require_relative 'active_call' require_relative 'active_call'
require_relative 'service' require_relative 'service'
require 'thread' require 'thread'
...@@ -353,10 +352,7 @@ module GRPC ...@@ -353,10 +352,7 @@ module GRPC
transition_running_state(:running) transition_running_state(:running)
@run_cond.broadcast @run_cond.broadcast
end end
remove_signal_handler = GRPC::Signals.register_handler { stop }
loop_handle_server_calls loop_handle_server_calls
# Remove signal handler when server stops
remove_signal_handler.call
end end
alias_method :run_till_terminated, :run alias_method :run_till_terminated, :run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment