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
189d685c
Commit
189d685c
authored
8 years ago
by
Ken Payson
Browse files
Options
Downloads
Patches
Plain Diff
Added timeout to port server
parent
c1bfe124
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/port_server.py
+6
-1
6 additions, 1 deletion
tools/run_tests/port_server.py
tools/run_tests/run_tests.py
+0
-4
0 additions, 4 deletions
tools/run_tests/run_tests.py
with
6 additions
and
5 deletions
tools/run_tests/port_server.py
+
6
−
1
View file @
189d685c
...
@@ -42,7 +42,7 @@ import time
...
@@ -42,7 +42,7 @@ import time
# increment this number whenever making a change to ensure that
# increment this number whenever making a change to ensure that
# the changes are picked up by running CI servers
# the changes are picked up by running CI servers
# note that all changes must be backwards compatible
# note that all changes must be backwards compatible
_MY_VERSION
=
8
_MY_VERSION
=
9
if
len
(
sys
.
argv
)
==
2
and
sys
.
argv
[
1
]
==
'
dump_version
'
:
if
len
(
sys
.
argv
)
==
2
and
sys
.
argv
[
1
]
==
'
dump_version
'
:
...
@@ -110,6 +110,11 @@ keep_running = True
...
@@ -110,6 +110,11 @@ keep_running = True
class
Handler
(
BaseHTTPServer
.
BaseHTTPRequestHandler
):
class
Handler
(
BaseHTTPServer
.
BaseHTTPRequestHandler
):
def
setup
(
self
):
# If the client is unreachable for 5 seconds, close the connection
self
.
timeout
=
5
BaseHTTPServer
.
BaseHTTPRequestHandler
.
setup
(
self
)
def
do_GET
(
self
):
def
do_GET
(
self
):
global
keep_running
global
keep_running
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
0
−
4
View file @
189d685c
...
@@ -1094,10 +1094,6 @@ def _shut_down_legacy_server(legacy_server_port):
...
@@ -1094,10 +1094,6 @@ def _shut_down_legacy_server(legacy_server_port):
def
_start_port_server
(
port_server_port
):
def
_start_port_server
(
port_server_port
):
# Temporary patch to switch the port_server port
# see https://github.com/grpc/grpc/issues/7145
_shut_down_legacy_server
(
32767
)
# check if a compatible port server is running
# check if a compatible port server is running
# if incompatible (version mismatch) ==> start a new one
# if incompatible (version mismatch) ==> start a new one
# if not running ==> start a new one
# if not running ==> start a new one
...
...
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