Skip to content
Snippets Groups Projects
Commit d5923578 authored by Muxi Yan's avatar Muxi Yan
Browse files

nit fixes

parent 2ee9751c
No related branches found
No related tags found
No related merge requests found
...@@ -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',
......
...@@ -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)PacketCoalescing:(bool)use_coalescing { - (void)packetCoalescing:(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 PacketCoalescing:true]; [self packetCoalescing:YES];
[self PacketCoalescing:false]; [self packetCoalescing:NO];
} }
@end @end
...@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment