Vishal Powar
df3d5bc8f7
Add upb generated code and build rule for lrs protocol.
6 years ago
Yash Tibrewal
2b7cab0d41
Remove check on error
6 years ago
Ahmed Mahdy
b4e94b652d
Fix formatting
6 years ago
Yash Tibrewal
917d025f03
Fix diff between num_entries and idx of path
6 years ago
Yash Tibrewal
960864736b
Unref errors in test
6 years ago
Ahmed Mahdy
1dce1009e6
Disable Nagle algorithm in Windows
6 years ago
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
b7f32af1d0
Fix scoping for service config errors
6 years ago
Yash Tibrewal
327350ab39
ServiceConfig::Create expects non-Null error and better errors
6 years ago
Yash Tibrewal
390078b7a8
Add tests for new service config mechanism
6 years ago
Yash Tibrewal
fbe3b3575f
Cleanup and continue parsing service config even if parser errors are received
6 years ago
Yash Tibrewal
c28f16e481
Reviewer comments
6 years ago
Mark D. Roth
4a19b2f45f
Add atomic to ensure we don't cancel twice.
...
Also convert existing seen_response_ to new atomic API.
6 years ago
Yash Tibrewal
0f0e774722
Clean up
6 years ago
Yash Tibrewal
0c8ef41a5e
Remove smart pointers from global registry
6 years ago
Yash Tibrewal
9bfd2354ec
Add global and method parsing logic
6 years ago
Mark D. Roth
0e7ea67351
Fix health check client to wait for subchannel call stack destruction before destroying the arena.
6 years ago
Yash Tibrewal
c871a0bb32
Remove commented code
6 years ago
Yash Tibrewal
4d696c659e
Reviewer comments
6 years ago
Mark D. Roth
ebf4cc1dfa
Avoid crash in pick_first when invoking ExitIdleLocked() after shutdown.
6 years ago
Nicolas "Pixel" Noble
81c6081a3e
Fixing failures.
6 years ago
Mark D. Roth
adf5f87284
more code review changes
6 years ago
Mark D. Roth
89a9e9d1dd
code review changes
6 years ago
Yash Tibrewal
69bbf86d14
Add a dummy function to grpc cfstream library
6 years ago
Mark D. Roth
ee4e4bead3
pick_first: don't go into TRANSIENT_FAILURE upon empty update when in IDLE.
6 years ago
Muxi Yan
39b40cbccb
Add guard to the tv_nsec field of gpr_now return value
6 years ago
Yihua Zhang
57caf78407
fix ALPN issues.
6 years ago
Soheil Hassas Yeganeh
c239e0416d
Initialize time as part of basic initialization.
...
`gpr_time_init` must happen in `do_basic_init`, because
for normal initialization we may need the precise clock
(e.g., if profilers are enabled).
Otherwise, we will have an stack overflow.
Fixes #18589
6 years ago
Soheil Hassas Yeganeh
da3a2320a2
Ref transport and stream before init of chttp2_stream structure.
...
The stream structure is really big and by the time we get to
ref the stream and the transport, the fields are out of cache.
We need to ref them immediately, before starting to initialize
the stream.
This commit introduces a 0-byte Reffer so that we can
ref the streams on time before the field initializers.
6 years ago
yang-g
47132c099e
error handling for start_bdp_ping
6 years ago
Yash Tibrewal
b2c773d26f
Global Registry for Service Config Parsers
6 years ago
Lidi Zheng
0231bf3b01
Regenerate projects
6 years ago
yang-g
55f9946d3b
Stop pinging if transport is closed
6 years ago
Mark D. Roth
96a26fdb0b
Use mutext to protect drop call counts in grpclb client stats.
6 years ago
Mark D. Roth
0b5ec20ce8
Revert "Merge pull request #18578 from grpc/revert-18437-data_plane_combiner"
...
This reverts commit a8477b421f
, reversing
changes made to 65b25ce24d
.
6 years ago
Moiz Haidry
ba00d3c914
Added a locality map class that maintains a child policy per locality. This is used by the xds lb policy to manage multiple localities. Also added a grpc_core::Map which is a templatized map, that is used by the locality map to maintain this info
6 years ago
Mark D. Roth
7e3b8d38ff
Revert "Split data plane and control plane into their own combiners."
6 years ago
Nicolas Noble
b400a6bf20
Revert "Fix compilation error in JWT using const_cast."
6 years ago
Yash Tibrewal
685372f61e
Close fd if error on getsockname
6 years ago
Mark D. Roth
59cb5193f9
Split data plane and control plane into their own combiners.
6 years ago
Yash Tibrewal
282702d080
Explicitly call getsockname after accept for unix sockets to get the sun_path
6 years ago
Soheil Hassas Yeganeh
b0e75a42d2
Fix a NULL deref in tcp_client_windows.cc
...
`grpc_sockaddr_to_uri(addr)` can return nullptr, and we are directly
passing it to grpc_slice_from_copied_string. Clusterfuzz found this
issue in https://clusterfuzz.com/testcase-detail/5188592759603200
Use "NULL" when target URI is nullptr, to avoid null deref.
Fixes 18544
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
Mark D. Roth
206592ce9c
Restructure how addresses and service config are passed from resolver to LB policy.
6 years ago
Nicolas "Pixel" Noble
9ff845961e
Breakout of #18445 - part 2
6 years ago
Guantao Liu
53065db366
Clang formatting
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
Nicolas "Pixel" Noble
55e280b7a5
Breakout of #18445 - part 1
6 years ago
Nicolas Noble
c9b7ca8e24
Adding missing language :P
6 years ago
Yash Tibrewal
8ef8d912a7
Use GRPC_CLOSURE_SCHED instead of GRPC_CLOSURE_RUN in complete_closure_step
6 years ago