Wensheng Tang
8e4d14fe91
Fix the assertion of grpc_udp_server_add_port
...
grpc_udp_server_add_port() can return port = -1 when going fail.
@nanahpang also recommands discarding port = 0
5 years ago
Qiancheng Zhao
444806583d
lazy resolving lb policy creation
5 years ago
Keith Moyer
4a96677219
Use struct-defined initialization when available
...
The grpc_polling_entity and grpc_httpcli_response types have default
member initializer values specified, to indicate what a cleared variable
of those types should have as values.
This file overrides that, however, by directly performing a memset to 0
over the structures. Instead, the initialization values defined by the
type should be honored.
Local types that include these types are also upgraded to specify
default member initializer values to simplify clearing them.
This fixes -Wclass-memaccess warnings in modern versions of GCC.
5 years ago
yang-g
5779dd935a
Qualify the error code with StatusCode::
5 years ago
Julien Boeuf
109edca971
Adding C++ API and implementation for STS credentials:
...
- marked as experimental.
- also changed the name of a field in the options struct.
5 years ago
Yunjia Wang
7bc9aba863
Reformat
5 years ago
Yunjia Wang
53b75d8c92
Change Get() signature, modify shut_down assertion & memoryorder
5 years ago
Qiancheng Zhao
6de222a6ad
refactor response generator in client_lb_end2end_test
5 years ago
Yunjia Wang
fdc250d618
remove bencharmk
5 years ago
yunjiaw26
b0b81792ee
Delete bm_threadpool.cc
5 years ago
Soheil Hassas Yeganeh
5e35a367d9
Revert "Clearly callout the behavior for listening ports."
5 years ago
Soheil Hassas Yeganeh
6376cc9b8f
Revert "Return empty strings on optional ports for backward compatibility."
...
This reverts commit 01b82d3a39
.
5 years ago
Yunjia Wang
a63cbfb61e
Fix headers order
5 years ago
Yunjia Wang
500cb1f99b
Reformat
5 years ago
Yunjia Wang
093dd768bb
reformat
5 years ago
Yunjia Wang
9421a27a76
Remove extra headers
5 years ago
Yunjia Wang
cac8afa159
Add benchmark
5 years ago
Soheil Hassas Yeganeh
01b82d3a39
Return empty strings on optional ports for backward compatibility.
...
gpr_split_host_port returns an empty string for the port
when given "0.0.0.0:" as the input.
Change the emptiness check to an explicit argument called has_port,
to remain backward compatible.
Added a test to cover both v4 and v6.
5 years ago
Moiz Haidry
bf994e48d9
Move grpc async, callback and sync implementation to grpc_impl namespace
5 years ago
Yunjia Wang
410451c126
Add threadpool implementation
5 years ago
Moiz Haidry
1c354e7c1f
Move grpc async, callback and sync implementation to grpc_impl namespace
5 years ago
Pau Freixes
a40dd958be
Fix watcher connectivity dead lock
...
Call the `grpc_cq_end_op` once the watcher connectivity mutex has been released, otherwise
when using a completion queue of callback type a dead lock will occur.
6 years ago
Soheil Hassas Yeganeh
ea63c00d38
Revert "Fix build failure in credential_test.cc"
...
This reverts commit dc858eea25
.
6 years ago
Soheil Hassas Yeganeh
fedf7e373e
Fix a backward compatibility bug.
...
To remain backward compatible, we only set port if it's a non-emptry
string. But, we always store host.
6 years ago
Soheil Hassas Yeganeh
c9ec1a64ed
Fix SplitHostPort for empty strings.
...
Add unittests to catch such errors in the future.
6 years ago
Soheil Hassas Yeganeh
dbf88dd66f
Revert "Revert "Introduce string_view and use it for gpr_split_host_port.""
...
This reverts commit 80c177d4c4
.
6 years ago
Alexander Polcyn
0d2c622f9e
Fix DNS resolver cooldown
6 years ago
Soheil Hassas Yeganeh
dc858eea25
Fix build failure in credential_test.cc
6 years ago
Qixuan Li
913acf456b
fix minor nits
6 years ago
yang-g
7a4b6b7e30
Update oauth2 token endpoints
6 years ago
Yunjia Wang
18fb10cdd6
Add some comment
6 years ago
Qixuan Li
0e85762b67
add pick_first_unary
6 years ago
Soheil Hassas Yeganeh
80c177d4c4
Revert "Introduce string_view and use it for gpr_split_host_port."
6 years ago
Julien Boeuf
189c2c8c30
Adding support for STS Token Exchange Creds in core:
...
- IETF specification is available here:
https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16
6 years ago
Karthik Ravi Shankar
2602bdd3e4
Address review comments
6 years ago
Yunjia Wang
833bd5c118
Change trace flag name, add some comment in test
6 years ago
Yunjia Wang
c48eac2dd4
Modify variable name for consistency, remove extra test
6 years ago
Karthik Ravi Shankar
514413de70
Clang formatting errors
6 years ago
Karthik Ravi Shankar
c041acb7a7
Fix the unit tests to exercise nesting correctly.
6 years ago
Karthik Ravi Shankar
44160d2b65
Add unit test to check the re-entrancy of callbacks
6 years ago
Yunjia Wang
2a7e593ac4
Change consumer thread to class
6 years ago
Yunjia Wang
723d6580bd
Change to malloc
6 years ago
Yunjia Wang
241d77bd80
remove extra constant
6 years ago
Yunjia Wang
a68e7bc461
Remove extra header file, change to c test, change new/delete
6 years ago
Moiz Haidry
fbd5957ee8
Sanity and build fixes
6 years ago
Yunjia Wang
491d4a8d93
test name matching
6 years ago
Moiz Haidry
63083d4472
Code cleanup
6 years ago
Moiz Haidry
3ce20819cf
Modify codegen to use grpc_impl namespace and other cleanups
6 years ago
yunjiaw26
857d8d14b0
Fix format error and memory leak
6 years ago
Soheil Hassas Yeganeh
ef0f9bf7ec
Introduce string_view and use it for gpr_split_host_port.
6 years ago