Commit Graph

3832 Commits

Author SHA1 Message Date
Karthik Ravi Shankar 451436e154 Revert https://github.com/grpc/grpc/pull/18345
Move ResourceQuota to grpc.
2020-06-10 17:24:33 -07:00
Yash Tibrewal ae4687af4a Remove window update frames from the pings doc 2020-06-05 14:30:56 -07:00
Yash Tibrewal 082f1ae887 Update pings channel args documentation 2020-06-05 12:01:43 -07:00
Karthik Ravi Shankar 11c54ada0d
Revert "Fix StartCall: make corking work and allow concurrent Start*" 2020-06-02 11:11:06 -07:00
Yash Tibrewal 62e4d25534
Merge pull request #23021 from Dlougach/patch-1
Include <memory> for std::unique_ptr
2020-06-01 13:00:23 -07:00
Karthik Ravi Shankar a826ee43a7
Merge pull request #21876 from 3vilM33pl3/master
Move windows.h to before check for minimum version instead of after
2020-05-27 10:10:05 -07:00
Jacob Dlougach 35ab5bc616
Include <memory> for std::unique_ptr
Currently `#include <grpcpp/support/interceptor.h>` in some compilers (gcc 8, for example) will fail due to missing `<memory>` include. This PR fixes this issue.
2020-05-21 14:17:45 +01:00
Vijay Pai 899cbcab96 Fix StartCall: make corking work and allow concurrent Start* 2020-05-20 10:02:22 -07:00
Mark D. Roth 2ba3f8e7f9 Trigger xds routing support via env var instead of channel arg. 2020-05-15 09:11:34 -07:00
Esun Kim 2b329d4c0c
Merge pull request #22325 from veblush/sanitizer-option
Added GRPC_TSAN_SUPPRESSED and GRPC_ASAN_SUPPRESSED
2020-05-13 16:48:42 -07:00
jiangtaoli2016 12a6435557 TlsCredentialsOption API optimization 2020-05-11 22:46:11 -07:00
Yang Gao 37a1630d37
Merge pull request #22383 from yang-g/server_comment
Add comment for error case
2020-05-11 10:33:46 -07:00
ZhenLian 2252895011
Merge pull request #22863 from ZhenLian/zhen_tmp_branch
Expose Peer SPIFFE Identity
2020-05-08 09:24:00 -07:00
Yash Tibrewal 8051d956af
Merge pull request #22429 from pavelsimo/patch-1
Fix typo in CallOpSet comments
2020-05-08 06:35:33 -07:00
Yash Tibrewal 32a2310516
Merge pull request #20866 from klfreeman/master
Add GRPC_ARG_HTTP_PROXY channel argument.
2020-05-08 06:27:16 -07:00
ZhenLian 9f92365657 Expose Peer SPIFFE Identity 2020-05-05 10:57:54 -07:00
Yash Tibrewal 6a6481cb83 Reviewer comments 2020-04-30 15:44:48 -07:00
Yash Tibrewal e714d0fcb8 Reviewer comments 2020-04-28 13:24:23 -07:00
Yash Tibrewal edbae5d8e6 Fix interceptor batch method FailHijackedRecvMessage for async APIs 2020-04-22 23:05:57 -07:00
Vijay Pai b797dbec3e Allocating request matcher to support C++ callback API 2020-04-22 10:53:08 -07:00
donnadionne baa442e6e4
Merge pull request #22280 from donnadionne/route_response
Xds Routing LB Policy
2020-04-17 12:45:39 -07:00
Yash Tibrewal b7941bedf3
Merge pull request #22575 from yashykt/newfilter
Move decompression into gRPC Core
2020-04-16 15:21:01 -07:00
Yash Tibrewal 67779b1b18 Reviewer comments 2020-04-16 11:37:53 -07:00
Donna Dionne a70abab157 Merge remote-tracking branch 'upstream/master' into route_response 2020-04-14 12:53:18 -07:00
Yash Tibrewal 633719d104 Revert API changes to byte buffer reader 2020-04-14 11:39:40 -07:00
Yash Tibrewal d24387ae4f Removing compression from grpc_byte_buffer_reader, removing ManualConstructor in decompress filter and fixing tests 2020-04-13 17:29:27 -07:00
Mark D. Roth dc976d2a77 xds: Remove fallback code and support for old xds LB configs. 2020-04-13 11:09:36 -07:00
Donna Dionne 1ae804c8c0 Fixing code review comments:
- Fixing for comments in all except for test file
- Multi-purpose test_service_impl.h as oppose
to creating new files.
2020-04-11 21:39:40 -07:00
Yash Tibrewal aca1145bb6 Fix C Core tests 2020-04-10 16:43:29 -07:00
Yash Tibrewal 3c34eae97e Move decompression into gRPC Core 2020-04-10 16:43:29 -07:00
Donna Dionne 8a8ca5436b Added grpc arg to enable xds routing and restore old tests. 2020-04-10 01:26:05 -07:00
Mark D. Roth f8f6034d1a Refactor xds LB policy 2020-04-07 14:03:01 -07:00
Vijay Pai 397b3ee72e
Do a debug-check of API use 2020-03-31 16:03:44 -07:00
Vijay Pai 03fffe0fcb
Document that AddMultipleHolds argument must be positive 2020-03-31 13:42:32 -07:00
Vijay Pai ee3952f72b
Merge pull request #22483 from vjpai/lambdify
Remove all std::mem_fn and std::bind from service definitions and setup
2020-03-26 23:52:06 -07:00
Kislay Kishore bf3954c8cc
Fix typo
clinet -> client
2020-03-26 09:45:11 +05:30
Vijay Pai c86cfc305c Remove all std::mem_fn and std::bind from service definitions and setup 2020-03-25 16:48:36 -07:00
Pavel Simó b91d433ba4
Fix typo 2020-03-20 14:13:51 +01:00
Vijay Pai 2b01d07ded
Merge pull request #22386 from vjpai/docs
Add useful comments
2020-03-19 13:57:06 -07:00
ZhenLian c97492faf0
Merge pull request #22370 from grpc/zhen_error_details_fix
[ImproveTLS] add a wrapper to error_detail in C core args
2020-03-18 14:58:07 -07:00
ZhenLian 738272f3a8 [ImproveTLS] add a wrapper to error_detail in C core args 2020-03-18 09:35:39 -07:00
Vijay Pai 33f4b8336e Add useful comments 2020-03-17 14:29:34 -07:00
yang-g b0ae82fe42 Add comment for error case 2020-03-17 10:55:48 -07:00
Esun Kim c17d1932fd Added GRPC_TSAN_SUPPRESSED and GRPC_ASAN_SUPPRESSED 2020-03-12 10:14:47 -07:00
Karthik Ravi Shankar 7c2b70d04a Fix clang format issue 2020-03-11 12:04:33 -07:00
Karthik Ravi Shankar 3e631d0e97 Fix build error 2020-03-05 19:07:52 -08:00
Karthik Ravi Shankar 162d3d76cb Fix build error due to remaining ::grpc_impl references 2020-03-05 18:55:14 -08:00
Karthik Ravi Shankar 4c75b5c06b Revert "Revert "Revert "Fold opencensus into grpc_impl namespace"""
This reverts commit f66b654795.
2020-03-05 18:22:03 -08:00
Zhen Lian cbc977204b [ImproveTLS] fix memory leak issue from users' perspective 2020-03-04 17:04:06 -08:00
Esun Kim 415d41f9e8 Rerun clang-formatter-7 2020-03-03 10:46:55 -08:00
Vijay Pai e859aa8169
Update server_callback_impl.h 2020-02-27 14:16:25 -08:00
Moiz Haidry 1d47046807 Merge from HEAD 2020-02-27 11:00:28 -08:00
Vijay Pai fe72304e54 Switch registered calls to a map and check the map before inserting 2020-02-27 09:13:42 -08:00
Moiz Haidry 0c5545a894 Merge from HEAD after build.yam autogenration 2020-02-27 08:15:00 -08:00
Moiz Haidry 88b0d84905 Addressed Vijay's comments, fixed string headers 2020-02-26 18:06:26 -08:00
Jan Tattermusch 3bb4d312df regenerate projects 2020-02-26 19:58:42 -05:00
Moiz Haidry 4c5ee108da Addressed Yang's comments, I have removed usage of const throughout for consistency 2020-02-26 14:14:33 -08:00
Moiz Haidry ede2ffc1a8 Addressed Mark's comments 2020-02-26 12:51:35 -08:00
Moiz Haidry 67565b767d CallCredentials debug string API 2020-02-25 16:09:03 -08:00
matthewstevenson88 ee020be62c
Merge pull request #21932 from matthewstevenson88/tls-credentials-1
Updates to TLS credentials, version 4
2020-02-20 09:16:45 -08:00
Vijay Pai 3620abf059 Properly follow precise conditions for callback inlining 2020-02-20 01:34:30 +00:00
Yash Tibrewal 820ee53030
Merge pull request #22000 from yashykt/unusedparams
Remove some unused parameter warnings
2020-02-13 16:23:19 -08:00
Esun Kim aa666f4b76
Merge pull request #21996 from veblush/deadline-catch
Delete default TimePoint constructor to detect error at compile time
2020-02-13 12:34:15 -08:00
Esun Kim cf618b1b8c Removed unused sync_[no]_cxx11 files 2020-02-13 09:26:51 -08:00
Esun Kim fd72a70e7d Update by review 2020-02-13 09:11:51 -08:00
Yash Tibrewal 4a02ff7747 Remove some unused parameter warnings 2020-02-12 17:56:34 -08:00
Esun Kim 89908faede Delete default TimePoint constructor to detect error at compile time 2020-02-12 12:20:36 -08:00
Esun Kim 9b5e418ed0
Merge pull request #21986 from veblush/absl-lock-pre
Added abseil-based sync
2020-02-11 17:12:17 -08:00
Esun Kim 0b26a2ff56 Added abseil-based sync 2020-02-11 14:44:25 -08:00
Vijay Pai 06ca713df0 Instantiate tracking members regardless of NDEBUG 2020-02-11 13:54:25 -08:00
Vijay Pai 6b2aeec9f3 Revert "Revert "Revert "Revert "Log an error (in dbg mode) if CQ is Shutdown before its Server(s)"""" 2020-02-11 13:50:53 -08:00
Vijay Pai ac0db94cb1 Allow separate templatizing of request and response types 2020-02-07 00:46:29 -08:00
Vijay Pai 0dda2e45b7 Templatize generic stub 2020-02-06 22:53:00 -08:00
Vijay Pai 7aaacb4bd9 Remove some grpc_impl:: 2020-02-06 22:50:02 -08:00
Matthew Stevenson 924aace7dc Version 4. 2020-02-06 08:51:41 -08:00
matthewstevenson88 ee7ae056e5
Revert "Updates to TLS credentials, version 3" 2020-02-05 13:52:46 -08:00
Vijay Pai 152f46b5f6 Move generic stub implementation to header (prepare for templates) 2020-02-04 23:42:22 -08:00
3vilM33pl3 5ae942e6cc
Move windows.h to before check for minimum version instead of after
This tests the value of _WIN32_WINNT before including windows.h. This is the wrong thing to do. If you want to require a minimum version you firts include windows,h and then check _WIN32_WINNT.

As described in this issue: https://github.com/microsoft/vcpkg/issues/7281
2020-02-03 17:23:17 +00:00
Matthew Stevenson f557437b51 Add back changes. 2020-01-30 15:26:51 -08:00
matthewstevenson88 b94490bc74
Merge pull request #21828 from grpc/revert-21804-tls-credentials-1
Revert "Updates to TLS credentials, version 2"
2020-01-29 13:51:42 -08:00
matthewstevenson88 9e0b87f523
Revert "Updates to TLS credentials, version 2" 2020-01-29 12:24:21 -08:00
Nicolas Noble de76cf8522
Stop using ByteSize as it's deprecated.
Fixes #21603
2020-01-29 10:46:19 -08:00
matthewstevenson88 deb59ef6c0
Merge pull request #21804 from matthewstevenson88/tls-credentials-1
Updates to TLS credentials, version 2
2020-01-28 09:40:56 -08:00
Lidi Zheng 312b31c264
Merge pull request #21806 from grpc/revert-21767-revert-21725-revert-21680-cq_ordering
Revert "Revert "Revert "Log an error (in dbg mode) if CQ is Shutdown before its Server(s)"""
2020-01-27 16:34:45 -08:00
Mark D. Roth 404d235153
Merge pull request #21775 from markdroth/xds_timeout
Support xds request timeouts.
2020-01-27 15:50:46 -08:00
Vijay Pai 15d808abae
Merge pull request #21774 from vjpai/lazy_default_reactor
Construct DefaultReactor lazily since not always needed
2020-01-27 14:23:42 -08:00
Lidi Zheng cd086cb3e4
Revert "Revert "Revert "Log an error (in dbg mode) if CQ is Shutdown before its Server(s)""" 2020-01-27 14:10:44 -08:00
Matthew Stevenson e18defc303 Fix attempt #2. 2020-01-27 12:47:32 -08:00
Mark D. Roth d7a91d59bb Support xds request timeouts. 2020-01-27 11:27:44 -08:00
Vijay Pai a801ccbdc8 Reinterpret_cast after in-place new... 2020-01-24 12:25:51 -08:00
matthewstevenson88 26d50f726a
Revert "Collect TLS-specific changes from PR 20568." 2020-01-23 12:34:43 -08:00
Vijay Pai 1f0cdd5aad Construct DefaultReactor lazily since not always needed 2020-01-23 08:52:21 -08:00
Vijay Pai 16f2250585 Revert "Revert "Log an error (in dbg mode) if CQ is Shutdown before its Server(s)"" 2020-01-22 21:58:35 -08:00
Vijay Pai a50e265f1b
Merge pull request #21741 from vjpai/clarify_comments
Clarify ownership in comments
2020-01-22 21:54:19 -08:00
Matthew Stevenson 5cfff04ce9 Collect TLS-specific changes from PR 2-568. 2020-01-22 13:06:22 -08:00
Vijay Pai 64281e8c79 Clarify ownership in comments 2020-01-21 10:45:04 -08:00
Jan Tattermusch e7d5ca0b46
Revert "Log an error (in dbg mode) if CQ is Shutdown before its Server(s)" 2020-01-20 14:42:29 +01:00
Vijay Pai 6466c7f166 Log an error (in dbg mode) if CQ is Shutdown before its Server(s) 2020-01-16 11:51:44 -08:00
Yihua Zhang c8c284ed3a merge with upstream/master 2020-01-07 15:33:26 -08:00
yihuaz e9665070b9
Merge pull request #21423 from akshayku/full-chain-callback-experimental
Add Support for Full Chain Callbacks - experimental namespace
2020-01-07 14:57:13 -08:00
Yihua Zhang 62005e4290 Merge remote-tracking branch 'upstream/master' into grpc_security_level_negotiation 2020-01-07 13:10:08 -08:00
Akshay Kumar 02371b7569 FullChainExperimental-01-200106-ssl_transport_security_test-4 2020-01-07 11:22:00 -08:00
Yang Gao b07d7f1485
Merge pull request #21597 from yang-g/max_message_size
Allow plugin/global_callback to override max_recv_message_size
2020-01-07 08:42:32 -08:00
Arjun Roy 48f026d90e gRPC TCP Transmit-side Zerocopy.
Implements TCP Tx-side zerocopy. Must be explicitly enabled to use.

For large RPCs (>= 16KiB) it reduces the amount of CPU time spent
since it avoids a userspace to kernel data buffer copy. However, there
is a tradeoff - the application must process a callback on the socket
error queue placed by the kernel, informing the application that the
data buffer can be freed since the kernel is done. The cost of
processing the error queue means that we do not have an advantage for
small RPCs.
2020-01-06 18:00:14 -08:00
yang-g f50c5a025c Revert "Merge pull request #21494 from grpc/revert-21478-max_message_size"
This reverts commit 2e4ebd7478, reversing
changes made to 1bd6fcc338.
2020-01-06 16:33:08 -08:00
Yihua Zhang e10d90ba27 add security level negotiation between call creds and channel. 2020-01-06 11:40:27 -08:00
Vijay Pai 2f0362ee3a
Remove unused (and defective) constructor 2020-01-05 16:27:30 -08:00
Akshay Kumar db11b94f25 FullChainExperimental-01-200103 2020-01-03 22:37:18 -08:00
Esun Kim 5207eba9ff Add abseil 2020-01-03 19:29:55 -08:00
Zhen Lian 618771dc6a [Exposing ALTS Context 2/2] Utility Wrapper Class
This PR contains:

1. An ALTS context exposed for users to use, and a GetAltsContextFromAuthContext() function to get ALTS context from an AuthContext. Functionality-wise this part is similar with a previous PR https://github.com/grpc/grpc/pull/21536, but in this PR, we adjusted the code structure and made some minor changes to better suit function clientAuthzCheck()
2. A clientAuthzCheck() function for users to check if the server is authorized
2020-01-03 09:30:46 -08:00
Vijay Pai 4062025312 Check for negative on NextMessageSize 2019-12-18 22:20:31 -08:00
klfreeman bc2997d054
Merge branch 'master' into master 2019-12-17 09:29:50 -08:00
Yang Gao 5a938a7012
Revert "Allow plugin/option/global_callback to override max_recv_message_size" 2019-12-16 17:58:02 -08:00
Guantao Liu 126248c7c1
Merge pull request #21492 from grpc/revert-21456-zhen_alts_context_new
Revert "[Exposing ALTS Context 2/2] Utility Wrapper Class"
2019-12-16 17:09:59 -08:00
Vijay Pai c512dd1aac
Merge pull request #21490 from vjpai/fix_cancellation
Fix cancellation callback data race
2019-12-16 17:07:02 -08:00
Yang Gao f8ebc20d3c
Merge pull request #21478 from yang-g/max_message_size
Allow plugin/option/global_callback to override max_recv_message_size
2019-12-16 15:33:25 -08:00
Guantao Liu b341ddf72b
Revert "[Exposing ALTS Context 2/2] Utility Wrapper Class" 2019-12-16 15:29:27 -08:00
Vijay Pai c758bf9571 clang-fmt 2019-12-16 13:43:55 -08:00
Vijay Pai bffc5701e6 Fix cancellation 2019-12-16 13:39:21 -08:00
yang-g 2db942a875 Allow plugin/option/global_callback to override max_recv_message_size 2019-12-13 16:32:37 -08:00
Zhen Lian 98391c8f76 [Exposing ALTS Context 2/2] Utility Wrapper Class 2019-12-13 13:31:38 -08:00
Vijay Pai 377a32c0ce
Merge pull request #21443 from vjpai/fix_bug_21210
Move operations out of lock in Bind functions
2019-12-11 21:48:36 -08:00
Vijay Pai 19404f516c
Merge pull request #21405 from vjpai/deexperimentalize_codegen
De-experimentalize generated callback code
2019-12-11 18:50:13 -08:00
Vijay Pai d82b3124fe Move operations out of lock in Bind functions 2019-12-11 16:34:46 -08:00
Vijay Pai 8d9d8326f5 De-experimentalize generated code 2019-12-11 16:21:23 -08:00
Esun Kim 169e775958
Revert "Generic API: assert when sending uninitialized byte buffer" 2019-12-11 12:58:34 -08:00
Vijay Pai ad697806ec
Remove unneeded semicolons
Caught by linter
2019-12-09 13:29:18 -08:00
hcaseyal 1917b1f794
Merge pull request #21385 from hcaseyal/generic_unary
Generic API: assert when sending uninitialized byte buffer
2019-12-09 08:34:13 -08:00
Hope Casey-Allen 89e5c2f45a Add assert for API misuse 2019-12-06 14:45:00 -08:00
yihuaz bad1b352a1
Merge pull request #21399 from yihuazhang/spiffe-rename
Rename existing Spiffe security stack to TLS
2019-12-06 11:11:14 -08:00
Vijay Pai 4d5b841eee
Merge pull request #21398 from vjpai/deexperimentalize_generic
De-experimentalize generic stub callback uses (under ifdef)
2019-12-06 10:56:28 -08:00
Yihua Zhang cc5a7d6324 Merge remote-tracking branch 'upstream/master' into spiffe-rename 2019-12-06 08:20:24 -08:00
Vijay Pai e6d87e273e
Fix 2019-12-05 20:47:03 -08:00
Yihua Zhang a6dbc7adb5 rename spiffe to tls 2019-12-05 16:03:37 -08:00
Vijay Pai 3da2c7aa22 De-experimentalize generic stub (under macro) 2019-12-05 15:40:21 -08:00
Vijay Pai 7c46d37442
Merge pull request #21380 from vjpai/implement_generic_unary_reactor
Actually implement the generic reactor-based unary call
2019-12-05 15:18:17 -08:00
Vijay Pai c5b9828592
Merge pull request #21378 from vjpai/deexperimentalize_alarm
De-experimentalize callback alarm
2019-12-05 10:11:41 -08:00
Vijay Pai 88874094be Actually implement the generic reactor-based unary call. 2019-12-04 11:41:47 -08:00
Vijay Pai 4b82faeb88 De-experimentalize alarm 2019-12-04 10:53:51 -08:00
Vijay Pai 62e01dd922 Add non-experimental:: versions under ifdef 2019-12-04 06:27:41 -08:00
Vijay Pai 1c5aa3c0ad Remove namespace experimental here also 2019-12-03 21:37:55 -08:00
Vijay Pai eac7b5ee49 port_platform should be included since that's where NONEXPERIMENTAL is specified 2019-12-03 20:20:39 -08:00
Vijay Pai 2c87eaabd4 De-experimentalize generic features of callback API under an ifdef 2019-12-03 12:24:13 -08:00
Vijay Pai 94a8c5888a Remove namespace experimental from namespace grpc_impl 2019-12-02 15:36:05 -08:00
Nicolas Noble e3095a15ce
Revert "[Exposing ALTS Context 2/2] Provide a Utility Function to Get Context" 2019-11-26 10:32:24 -08:00
ZhenLian 69112951f4
Merge pull request #21196 from ZhenLian/zhen_alts_context_C++_2
[Exposing ALTS Context 2/2] Provide a Utility Function to Get Context
2019-11-26 09:56:33 -08:00
Zhen Lian fe9576c861 [Exposing ALTS Context 2/2] Provide a Utility Function to Get Context 2019-11-25 15:56:33 -08:00
Yash Tibrewal b4d6916552
Merge pull request #20567 from yashykt/docupdate
Stronger guarantee on failure of read/write operations
2019-11-25 11:59:10 -08:00
Vijay Pai be6979202b Revamp server-side C++ callback API, message allocator, and mocking 2019-11-20 16:56:18 -08:00
Hope Casey-Allen 3bbfb76b64 Add comment about thread safety 2019-11-19 14:44:30 -08:00