Arjun Roy
b1d73a01f1
Removed duplicate static table from hpack table. Removed an or instruction for
...
every usage of static grpc metadata. Inlined hpack table lookups for static
metadata.
This leads to faster hpack parser creation:
BM_HpackParserInitDestroy 5.32µs ± 1% 0.06µs ± 1% -98.91% (p=0.000 n=18+19)
And slightly faster parsing:
BM_HpackParserParseHeader<RepresentativeClientInitialMetadata, OnInitialHeader>
456ns ± 1% 435ns ± 1% -4.74% (p=0.000 n=18+19)
BM_HpackParserParseHeader<MoreRepresentativeClientInitialMetadata,
OnInitialHeader>
1.06µs ± 2% 1.04µs ± 2% -1.82% (p=0.000 n=19+20)
It also yields a slight (0.5 - 1.0 microsecond) reduction in CPU time for
fullstack unary pingpong:
BM_UnaryPingPong<TCP, NoOpMutator, NoOpMutator>/0/512
[polls/iter:3.0001 ] 23.9µs ± 2%
23.0µs ± 1% -3.63% (p=0.002 n=6+6)
BM_UnaryPingPong<TCP, NoOpMutator, NoOpMutator>/0/32768
[polls/iter:3.00015 ] 35.1µs ± 1%
34.2µs ± 1% -2.57% (p=0.036 n=5+3)
BM_UnaryPingPong<MinTCP, NoOpMutator, NoOpMutator>/8/0
[polls/iter:3.00011 ] 21.7µs ± 3%
21.2µs ± 2% -2.44% (p=0.017 n=6+5)
5 years ago
Yunjia Wang
a381dea062
reformat
5 years ago
Yunjia Wang
c15d246f6a
Add constructor test case
5 years ago
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
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
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
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
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
Yunjia Wang
410451c126
Add threadpool implementation
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.
5 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
yang-g
7a4b6b7e30
Update oauth2 token endpoints
6 years ago
Yunjia Wang
18fb10cdd6
Add some comment
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
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
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
Yunjia Wang
491d4a8d93
test name matching
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
Yunjia Wang
befd236fa3
Remove extra
6 years ago
Yunjia Wang
fdd856312a
Modify class name and other small changes
6 years ago
Yunjia Wang
a3a5685d29
Modify Node allocate/deallocate
6 years ago
Yunjia Wang
2fbd77aee4
Fix Node compile error on operator overload
6 years ago
Yunjia Wang
58e36f1034
Add base class abstract macro to all classes
6 years ago
Yunjia Wang
ad22f9d7bf
Add delete operator overload
6 years ago
Juanli Shen
67e6b03e92
Fix compression algorithm parsing
6 years ago
Vijay Pai
6124a835d4
Revert "Hide ConnectedSubchannel from LB policy API."
6 years ago
yang-g
e291396644
Cap deadline to 99999999 seconds on wire
6 years ago
Yash Tibrewal
8a310e5063
Clang tidy
6 years ago
Yash Tibrewal
4fc02c6bf5
add tests for bad stream IDs
6 years ago
Yunjia Wang
0a1b6d8304
Modify format - nullptr
6 years ago
Yunjia Wang
6fc7d2b18f
fix undefined reference to operator delete for MPMCQueue interface class
6 years ago
Yash Tibrewal
9f10ab5377
Add gtest dependency to the test instead of library
6 years ago
Yash Tibrewal
e60c43ff3e
Add out of bounds frame tests
6 years ago
Yunjia Wang
a633ad3814
add mpmcqueue implementation ad test
6 years ago
Vijay Pai
f05c475f01
Fix Python3 incompatibility
6 years ago
Mark D. Roth
7767fbe683
Hide ConnectedSubchannel from LB policy API.
6 years ago