Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
76733cf1
Commit
76733cf1
authored
8 years ago
by
murgatroid99
Browse files
Options
Downloads
Patches
Plain Diff
Removed remaining references to old server handling code
parent
d595fb65
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ruby/lib/grpc.rb
+0
-2
0 additions, 2 deletions
src/ruby/lib/grpc.rb
src/ruby/lib/grpc/generic/active_call.rb
+0
-5
0 additions, 5 deletions
src/ruby/lib/grpc/generic/active_call.rb
src/ruby/lib/grpc/generic/rpc_server.rb
+0
-4
0 additions, 4 deletions
src/ruby/lib/grpc/generic/rpc_server.rb
with
0 additions
and
11 deletions
src/ruby/lib/grpc.rb
+
0
−
2
View file @
76733cf1
...
@@ -47,5 +47,3 @@ begin
...
@@ -47,5 +47,3 @@ begin
ensure
ensure
file
.
close
file
.
close
end
end
GRPC
::
Signals
.
wait_for_signals
This diff is collapsed.
Click to expand it.
src/ruby/lib/grpc/generic/active_call.rb
+
0
−
5
View file @
76733cf1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/ruby/lib/grpc/generic/rpc_server.rb
+
0
−
4
View file @
76733cf1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment