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
d5923578
Commit
d5923578
authored
8 years ago
by
Muxi Yan
Browse files
Options
Downloads
Patches
Plain Diff
nit fixes
parent
2ee9751c
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
gRPC-Core.podspec
+1
-0
1 addition, 0 deletions
gRPC-Core.podspec
src/objective-c/tests/CronetUnitTests/CronetUnitTests.m
+5
-5
5 additions, 5 deletions
src/objective-c/tests/CronetUnitTests/CronetUnitTests.m
templates/gRPC-Core.podspec.template
+1
-0
1 addition, 0 deletions
templates/gRPC-Core.podspec.template
with
7 additions
and
5 deletions
gRPC-Core.podspec
+
1
−
0
View file @
d5923578
...
@@ -883,6 +883,7 @@ Pod::Spec.new do |s|
...
@@ -883,6 +883,7 @@ Pod::Spec.new do |s|
'test/core/end2end/end2end_test_utils.c'
,
'test/core/end2end/end2end_test_utils.c'
,
'test/core/end2end/tests/*.{c,h}'
,
'test/core/end2end/tests/*.{c,h}'
,
'test/core/end2end/data/*.{c,h}'
,
'test/core/end2end/data/*.{c,h}'
,
'test/core/util/debugger_macros.c'
,
'test/core/util/test_config.{c,h}'
,
'test/core/util/test_config.{c,h}'
,
'test/core/util/port.h'
,
'test/core/util/port.h'
,
'test/core/util/port_posix.c'
,
'test/core/util/port_posix.c'
,
...
...
This diff is collapsed.
Click to expand it.
src/objective-c/tests/CronetUnitTests/CronetUnitTests.m
+
5
−
5
View file @
d5923578
...
@@ -273,7 +273,7 @@ unsigned int parse_h2_length(const char *field) {
...
@@ -273,7 +273,7 @@ unsigned int parse_h2_length(const char *field) {
grpc_completion_queue_destroy
(
cq
);
grpc_completion_queue_destroy
(
cq
);
}
}
-
(
void
)
P
acketCoalescing
:(
bool
)
use_coalescing
{
-
(
void
)
p
acketCoalescing
:(
BOOL
)
use_coalescing
{
grpc_arg
arg
;
grpc_arg
arg
;
arg
.
key
=
GRPC_ARG_USE_CRONET_PACKET_COALESCING
;
arg
.
key
=
GRPC_ARG_USE_CRONET_PACKET_COALESCING
;
arg
.
type
=
GRPC_ARG_INTEGER
;
arg
.
type
=
GRPC_ARG_INTEGER
;
...
@@ -390,7 +390,7 @@ unsigned int parse_h2_length(const char *field) {
...
@@ -390,7 +390,7 @@ unsigned int parse_h2_length(const char *field) {
char
buf
[
4096
];
char
buf
[
4096
];
long
len
;
long
len
;
bool
coalesced
=
false
;
BOOL
coalesced
=
NO
;
while
((
len
=
SSL_read
(
ssl
,
buf
,
sizeof
(
buf
)))
>
0
)
{
while
((
len
=
SSL_read
(
ssl
,
buf
,
sizeof
(
buf
)))
>
0
)
{
gpr_log
(
GPR_DEBUG
,
"Read len: %ld"
,
len
);
gpr_log
(
GPR_DEBUG
,
"Read len: %ld"
,
len
);
...
@@ -408,7 +408,7 @@ unsigned int parse_h2_length(const char *field) {
...
@@ -408,7 +408,7 @@ unsigned int parse_h2_length(const char *field) {
(
buf
[
p
+
4
]
&
1
)
!=
0
&&
// EOS bit is set
(
buf
[
p
+
4
]
&
1
)
!=
0
&&
// EOS bit is set
0
==
memcmp
(
"hello world"
,
&
buf
[
p
+
14
],
0
==
memcmp
(
"hello world"
,
&
buf
[
p
+
14
],
11
))
{
// Message is correct
11
))
{
// Message is correct
coalesced
=
true
;
coalesced
=
YES
;
break
;
break
;
}
}
p
+=
(
parse_h2_length
(
&
buf
[
p
])
+
9
);
p
+=
(
parse_h2_length
(
&
buf
[
p
])
+
9
);
...
@@ -448,8 +448,8 @@ unsigned int parse_h2_length(const char *field) {
...
@@ -448,8 +448,8 @@ unsigned int parse_h2_length(const char *field) {
}
}
-
(
void
)
testPacketCoalescing
{
-
(
void
)
testPacketCoalescing
{
[
self
P
acketCoalescing
:
true
];
[
self
p
acketCoalescing
:
YES
];
[
self
P
acketCoalescing
:
false
];
[
self
p
acketCoalescing
:
NO
];
}
}
@end
@end
This diff is collapsed.
Click to expand it.
templates/gRPC-Core.podspec.template
+
1
−
0
View file @
d5923578
...
@@ -179,6 +179,7 @@
...
@@ -179,6 +179,7 @@
'test/core/end2end/end2end_test_utils.c',
'test/core/end2end/end2end_test_utils.c',
'test/core/end2end/tests/*.{c,h}',
'test/core/end2end/tests/*.{c,h}',
'test/core/end2end/data/*.{c,h}',
'test/core/end2end/data/*.{c,h}',
'test/core/util/debugger_macros.c',
'test/core/util/test_config.{c,h}',
'test/core/util/test_config.{c,h}',
'test/core/util/port.h',
'test/core/util/port.h',
'test/core/util/port_posix.c',
'test/core/util/port_posix.c',
...
...
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