Soheil Hassas Yeganeh
a26c09dd25
Introduce C++ wrappers for gpr_mu and gpr_cv.
...
Introduce RAII wrappers in the grpc::internal and grpc_core
namespaces, and use them in place of std::mutex and
std::condition_variable.
Note that, since std::mutex is also used by the public
C++ headers we cannot introduce these wrappers in grpc_core.
Also, note that in grpcpp we cannot use gRPC core and vice versa.
So we had to duplicate the code, once using core_codegen_interface
and once using direct calls.
6 years ago
Yash Tibrewal
8eeb429db0
Missing argument
6 years ago
Yash Tibrewal
327350ab39
ServiceConfig::Create expects non-Null error and better errors
6 years ago
Juanli Shen
4ae20ad972
Fix count in xds/grpclb test
6 years ago
Prashant Jaikumar
80140f53fb
Fix CFStreamTest.NetworkTransition.
...
It looks like CFStream doesn't detect stream errors when the server is listening on 127.0.0.2 and the interface is shutdown.
The test started failing after address was changed from 10.0.0.1 to 127.0.0.2 in #18381 . This commit changes the server address back to 10.0.0.1.
6 years ago
Yash Tibrewal
cb6a2968fe
Make Interceptors work for lame channels
6 years ago
Mark D. Roth
9e841d1aff
Backport pick_first fix to v1.20.x
6 years ago
Mark D. Roth
ee4e4bead3
pick_first: don't go into TRANSIENT_FAILURE upon empty update when in IDLE.
6 years ago
Mark D. Roth
ce2af3b958
Remove noisy log message.
6 years ago
Juanli Shen
1979edd03c
Fix BackendsRestart test
6 years ago
Prashant Jaikumar
4e9e662729
Fixed bug in CFStream endpoint.
...
We were failing to return an error when the transport tried to write to an endpoint that was in an errored state.
6 years ago
yang-g
8f77928e04
Log error to stderr
6 years ago
Mark D. Roth
206592ce9c
Restructure how addresses and service config are passed from resolver to LB policy.
6 years ago
Guantao Liu
872d2787a0
Avoid using grpc_core::Executor when the background poller is available.
...
Instead, run closures in the background poller. This will generally
avoid the thread hop in the gRPC runtime.
6 years ago
Karthik Ravi Shankar
8dbaa13f52
Fix more grpc namespace issues
6 years ago
Karthik Ravi Shankar
92bde3922f
Fix tests to use grpc namespace.
6 years ago
Karthik Ravi Shankar
b25f6da3f0
Make changes to fix test failures
6 years ago
Karthik Ravi Shankar
4e0923e802
Fix errors from clang_format_code.sh
6 years ago
yang-g
621840900f
Fully log test scenario
6 years ago
Bill Feng
1a09899d3e
reverted change on thread manager test
6 years ago
Soheil Hassas Yeganeh
1014fe507f
Use const ref for grpc_slice.
...
We are copying the slice on every call creation, which is hurting
ping/pong traffic.
6 years ago
Karthik Ravi Shankar
ecfc107f32
Make more changes to remove grpc qualifier from tests
6 years ago
Bill Feng
d93959853f
Enabled Windows Bazel build for cpp tests
6 years ago
Karthik Ravi Shankar
4260fe1147
More fixes
6 years ago
Karthik Ravi Shankar
9a41671cb1
Remove grpc:: from API to ensure general availability
6 years ago
Soheil Hassas Yeganeh
ad1b3e5094
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()
This commit reaplies 509e77a5a3
6 years ago
Karthik Ravi Shankar
04af168cf8
Move Server into grpc_impl from grpc
6 years ago
Karthik Ravi Shankar
54171e276f
Fold server credentials from grpc to grpc_impl namespace
6 years ago
Hope Casey-Allen
6ecf74f641
Increase timeout for test
6 years ago
Karthik Ravi Shankar
1d357572cf
Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota"
...
This reverts commit d8d8bec7c8
.
6 years ago
Vijay Pai
7b3a120295
Address reviewer comments
6 years ago
Vijay Pai
f12f862d28
Strengthen test
6 years ago
Vijay Pai
0cb0cdb7e3
Address reviewer comments on test
6 years ago
Vijay Pai
93f0a3f653
Address reviewer comments
6 years ago
Mark D. Roth
233d3e27ff
grpclb fallback-at-startup improvements
6 years ago
Vijay Pai
04a6b8467c
Support callback on cancellation of server-side unary RPCs
6 years ago
Mark D. Roth
adc2163038
Go into fallback mode when losing contact with balancer and backends.
6 years ago
Karthik Ravi Shankar
2a8f3f79ab
Fix more namespace stuff
6 years ago
Karthik Ravi Shankar
0692dcc16a
Fix tests namespaces
6 years ago
Vijay Pai
48ce4ca939
Add support for extra-reaction operations via Holds
6 years ago
Karthik Ravi Shankar
5906b86119
Fix tests to use grpc namespace
6 years ago
Karthik Ravi Shankar
582ecc8fc4
Fix tests to use grpc namespace
6 years ago
Mark D. Roth
b0ad6ac3ae
Clean up grpclb and xds end2end tests.
6 years ago
Karthik Ravi Shankar
f570c5ce7e
Make changes for making opencensus API visible from gRPC namespace
6 years ago
Karthik Ravi Shankar
f66b654795
Revert "Revert "Fold opencensus into grpc_impl namespace""
6 years ago
Karthik Ravi Shankar
2bf934f97d
Revert "Fold opencensus into grpc_impl namespace"
6 years ago
Jan Tattermusch
cf6a311761
Revert "Windows builds for gRPC C++ tests"
6 years ago
Michael Behr
7f6ed9267f
Convert metadata flag keys to lowercase.
6 years ago
Karthik Ravi Shankar
d8d8bec7c8
Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota
...
This change moves ResourceQuota class fron grpc namespace to grpc_impl
namespace.
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
6 years ago
Mark D. Roth
687580fe04
Add ResultHandler to Resolver API.
6 years ago