Soheil Hassas Yeganeh
509e77a5a3
Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
...
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.
A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.
This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.
QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.
Also add tests and benchmarks for byte_buffer_reader_peek()
6 years ago
Mark D. Roth
251d66aac6
Convert client channel factory to C++
6 years ago
Vu Cong Tuan
9c4de5a0ff
Fix typos in test code
...
Signed-off-by: Vu Cong Tuan <tuanvc@vn.fujitsu.com>
6 years ago
Nguyen Quang Huy
c9acd8380f
Fix some typos
...
Correct some words spelling for reading more easily.
6 years ago
yang-g
456f748b2f
Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
...
This reverts commit 9079e98dfc
, reversing
changes made to 76a38bfcc2
.
6 years ago
Yang Gao
4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread"
6 years ago
Mark D. Roth
e40177fad0
Make service config ref-counted and hold refs to it in LB config.
6 years ago
Mark D. Roth
624fb64f61
LB policy ctors no longer perform updates; UpdateLocked() must be called
...
after construction.
6 years ago
yang-g
cedc76bf38
Resolve comments
6 years ago
Mark D. Roth
aa149fedbb
Revert "Merge pull request #18093 from grpc/revert-17770-lb_policy_picker_api"
...
This reverts commit f327b83706
, reversing
changes made to b3b5d63423
.
6 years ago
hcaseyal
275296c594
Revert "LB policy picker API"
6 years ago
yang-g
3227abf717
fix percent en/decode fuzzers
6 years ago
yang-g
86b23adc7f
Other comments
6 years ago
xtao
7766912dda
fix more detected mu/cv leaks
6 years ago
xtao
902820a5de
1) fix the asan tests caught leaks;
...
2) fix the tsan tests caught data races;
6 years ago
jiangtaoli2016
f5a71f7313
Clean up deprecated tsi_create_ssl_server_handshaker_factory callers
6 years ago
yang-g
545c555d31
Rename new public API
6 years ago
yang-g
233406d450
generate projects
6 years ago
yang-g
684643ff0a
Test fixing php
6 years ago
Mark D. Roth
bab8123763
LB policy picker API
6 years ago
yang-g
520dc0461c
fix resolve_address_test
6 years ago
xichengliudui
d9b508c896
Fix various typos in .cc and .md and .py files
6 years ago
Arjun Roy
195a30bb8b
Grpc: Change grpc_handshake and grpc_handshake_mgr to use CPP implementations.
...
grpc_handshake is renamed to GrpcHandshake, using C++ class definitions
instead of C-style vtable classes. Update callers to use new interfaces.
We use RefCountedPtr to simplify reference tracking.
6 years ago
Yash Tibrewal
30d8f7a626
Memset before setting length
6 years ago
Yash Tibrewal
ff72f3eeff
Skip the test instead
6 years ago
Jan Tattermusch
486b1fe320
Fix bad_client_simple_request test.
...
The data of 0xffffffff is actually not illegal, the top bit should be
ingored according to the spec.
6 years ago
Yash Tibrewal
5a9eb31a3e
Clang format
6 years ago
Yash Tibrewal
bfd89bcec5
Don't run for poll and poll-cv
6 years ago
Yash Tibrewal
6b74b1350b
Experiment with timing values to make sure that tests pass
6 years ago
Yash Tibrewal
058ceccd71
Add test to check that reads reset the keepalive timer
6 years ago
Soheil Hassas Yeganeh
94564d1c22
Update the channelz compaction test to use 300 entries.
6 years ago
Nicolas Noble
9abc673def
Restore gsec* suppressions
...
These aren't from BoringSSL
6 years ago
Nicolas Noble
510fba2deb
Removing BoringSSL-specific ubsan suppressions.
...
Let's see if #17791 is really fixed.
6 years ago
Vijay Pai
b23abe832c
GPR_ARRAY_SIZE is meant for arrays
6 years ago
Prashant Jaikumar
6b19927bc4
Bad connection test
6 years ago
Yihua Zhang
09cd07cfa0
revision 1
6 years ago
Yihua Zhang
adfe2238ef
ignore duplicate root cert in cert list instead of fail.
6 years ago
Alexander Polcyn
139d9f6e94
Revert "Revert c-ares as the default resolvre"
...
This reverts commit ca30b2240f
.
6 years ago
Juanli Shen
4f3c1572e1
Revert "Revert "C++-ify subchannel""
6 years ago
Muxi Yan
8e085233ed
Fix CFStream test
6 years ago
Juanli Shen
bbfc024a02
Revert "C++-ify subchannel"
6 years ago
Juanli Shen
25dc2ffed6
C++-ify subchannel
6 years ago
Yihua Zhang
a3d997cbdc
Add a TLS credential surface API (experimental)
6 years ago
Yash Tibrewal
dd5ead2ac1
Extra argument for grpc_endpoint_write
6 years ago
Alexander Polcyn
ca30b2240f
Revert c-ares as the default resolvre
6 years ago
Chris Wilcox
df6cf7c741
Add period at end of metadata.google.internal to prevent unnecessary DNS lookups.
6 years ago
Vijay Pai
fab05d336c
Dynamic callback requesting, graceful server shutdown, and separate ExecCtx for callbacks
6 years ago
Alexander Polcyn
da9237a9c5
Fix windows localhost address sorting bypass
6 years ago
Mark D. Roth
f99bd8c08a
Pass LB policy args as non-const and using std::move().
6 years ago
Yash Tibrewal
958f4535c4
Fix TSAN issue in filter_status_code test
6 years ago