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
cf36f858
"git@gitlab.uni-hannover.de:tci-gateway-module/grpc.git" did not exist on "0e5b67f4a2405654a99cac5d5b54816f9339c4fa"
Commit
cf36f858
authored
8 years ago
by
vjpai
Browse files
Options
Downloads
Patches
Plain Diff
Support server-side secure test.
parent
ed25a33e
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
src/ruby/qps/client.rb
+2
-3
2 additions, 3 deletions
src/ruby/qps/client.rb
src/ruby/qps/server.rb
+2
-1
2 additions, 1 deletion
src/ruby/qps/server.rb
with
4 additions
and
4 deletions
src/ruby/qps/client.rb
+
2
−
3
View file @
cf36f858
...
@@ -60,13 +60,13 @@ class BenchmarkClient
...
@@ -60,13 +60,13 @@ class BenchmarkClient
if
config
.
security_params
if
config
.
security_params
if
config
.
security_params
.
use_test_ca
if
config
.
security_params
.
use_test_ca
certs
=
load_test_certs
certs
=
load_test_certs
cred
=
GRPC
::
Core
::
Credentials
.
new
(
certs
[
0
])
cred
=
GRPC
::
Core
::
Channel
Credentials
.
new
(
certs
[
0
])
else
else
p
'Unsupported to use non-test CA (TBD)'
p
'Unsupported to use non-test CA (TBD)'
exit
exit
end
end
if
config
.
security_params
.
server_host_override
if
config
.
security_params
.
server_host_override
p
'Unsupported to use sever
t
host override (TBD)'
p
'Unsupported to use se
r
ver host override (TBD)'
exit
exit
end
end
else
else
...
@@ -79,7 +79,6 @@ class BenchmarkClient
...
@@ -79,7 +79,6 @@ class BenchmarkClient
@done
=
false
@done
=
false
(
0
..
config
.
client_channels
-
1
).
each
do
|
i
|
(
0
..
config
.
client_channels
-
1
).
each
do
|
i
|
Thread
.
new
{
Thread
.
new
{
stub
=
''
gtsr
=
Grpc
::
Testing
::
SimpleRequest
gtsr
=
Grpc
::
Testing
::
SimpleRequest
gtpt
=
Grpc
::
Testing
::
PayloadType
gtpt
=
Grpc
::
Testing
::
PayloadType
gtp
=
Grpc
::
Testing
::
Payload
gtp
=
Grpc
::
Testing
::
Payload
...
...
This diff is collapsed.
Click to expand it.
src/ruby/qps/server.rb
+
2
−
1
View file @
cf36f858
...
@@ -66,7 +66,8 @@ class BenchmarkServer
...
@@ -66,7 +66,8 @@ class BenchmarkServer
def
initialize
(
config
,
port
)
def
initialize
(
config
,
port
)
if
config
.
security_params
if
config
.
security_params
certs
=
load_test_certs
certs
=
load_test_certs
cred
=
GRPC
::
Core
::
Credentials
.
new
(
certs
[
0
])
cred
=
GRPC
::
Core
::
ServerCredentials
.
new
(
nil
,
[{
private_key:
certs
[
1
],
cert_chain:
certs
[
2
]}],
false
)
else
else
cred
=
:this_port_is_insecure
cred
=
:this_port_is_insecure
end
end
...
...
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