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
446f70e3
Commit
446f70e3
authored
8 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
fixed faulty server streaming c++ test case
parent
ff32a864
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/interop/interop_server.cc
+2
-2
2 additions, 2 deletions
test/cpp/interop/interop_server.cc
with
2 additions
and
2 deletions
test/cpp/interop/interop_server.cc
+
2
−
2
View file @
446f70e3
...
...
@@ -194,8 +194,6 @@ class TestServiceImpl : public TestService::Service {
ServerContext
*
context
,
const
StreamingOutputCallRequest
*
request
,
ServerWriter
<
StreamingOutputCallResponse
>*
writer
)
{
StreamingOutputCallResponse
response
;
// Compress by default. Disabled on a per-message basis.
context
->
set_compression_level
(
GRPC_COMPRESS_LEVEL_HIGH
);
bool
write_success
=
true
;
for
(
int
i
=
0
;
write_success
&&
i
<
request
->
response_parameters_size
();
i
++
)
{
...
...
@@ -206,6 +204,8 @@ class TestServiceImpl : public TestService::Service {
}
WriteOptions
wopts
;
if
(
request
->
response_parameters
(
i
).
has_compressed
())
{
// Compress by default. Disabled on a per-message basis.
context
->
set_compression_level
(
GRPC_COMPRESS_LEVEL_HIGH
);
const
bool
compression_requested
=
request
->
response_parameters
(
i
).
compressed
().
value
();
gpr_log
(
GPR_DEBUG
,
"Request for compression (%s) present for %s"
,
...
...
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