Commit Graph

3497 Commits

Author SHA1 Message Date
Matthew Stevenson c942282abc Implemented Yihua's review comments 2019-08-27 14:57:02 -07:00
Matthew Stevenson 86f52e312a More work with memory leaks 2019-08-26 15:37:10 -07:00
Matthew Stevenson 333cd930c3 Removed old Arg constructors as comments. 2019-08-26 14:59:32 -07:00
Matthew Stevenson 5d9297d0bc Fixed some memory leaks 2019-08-26 14:31:16 -07:00
Matthew Stevenson c2fd3844dc Implemented Yihua's comments 2019-08-23 16:20:19 -07:00
Matthew Stevenson 967b911f85 Add forgotten callback function for server authorization check. 2019-08-21 09:08:15 -07:00
Matthew Stevenson 6189d34724 Revert "Forgot to autogenerate files and run clang_format/tidy_code"
This reverts commit 9295e4ebb3.
2019-08-20 14:50:35 -07:00
Matthew Stevenson 9295e4ebb3 Forgot to autogenerate files and run clang_format/tidy_code 2019-08-20 14:41:38 -07:00
Matthew Stevenson 52b72c00f1 Debugging after restores 2019-08-20 14:23:08 -07:00
Matthew Stevenson 853f95a7d5 Add files to previous restore commit 2019-08-20 13:48:23 -07:00
Matthew Stevenson 791e9ffa32 Restored tls_credentials_options.h 2019-08-20 13:05:36 -07:00
Matthew Stevenson bcc458fb37 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-20 11:55:52 -07:00
Qiancheng Zhao 1391c93a95 atomic client idle filter 2019-08-16 14:15:21 -07:00
Juanli Shen c1713800e0 Handle EDS response update in locality map 2019-08-16 09:06:06 -07:00
Matthew Stevenson 1e46b38d66 Hid some key materials API's and refactored credential reload arg wrapper. 2019-08-14 13:11:27 -07:00
yang-g fd106bf1ac Add accessor declaration for ClientContext 2019-08-14 12:38:59 -07:00
Matthew Stevenson f3f8bf05b2 Fix conflicts with ssl_utils.h 2019-08-13 12:18:31 -07:00
Soheil Hassas Yeganeh ae7b126de6
Merge pull request #19920 from soheilhy/protobuf
Directly use the ZeroCopyInputStream for grpc::GenericDeserialize.
2019-08-13 13:48:57 -04:00
Soheil Hassas Yeganeh eadd5ea110 Directly use the ZeroCopyInputStream for grpc::GenericDeserialize.
There is no need to use CodedInputStream, wrapping a
ZeroCopyInputStream.

Suggested by: Gerben Stavenga
2019-08-12 22:44:56 -04:00
Yihua Zhang ae863630d5 Add spiffe client-side credential reload 2019-08-12 14:12:13 -07:00
Soheil Hassas Yeganeh 13896f8bd1 Mandate static string for host and method passed to grpc_channel_register_call
This is for the gRFC being prepared.

Bump the major version of core to 8.0.0.
2019-08-09 16:26:37 -04:00
Matthew Stevenson 094c35f872 Small changes to ssl_util.h, added comments, fixed error in key materials unit test 2019-08-08 22:54:06 -07:00
Matthew Stevenson aa207510ce Finished implementation of API's. 2019-08-07 15:53:26 -07:00
Soheil Hassas Yeganeh bdd3fdddb2 Expose cycle counter and use it /channelz.
We are using clock real time (which is very expensive) on every
RPC to update channelz. We should simply use cycle clock.

This patch exposes cycle clock, enables RDTSC on intel,
and use it for channelz.

This patch also changes the implementation of time_precise_init
to that more accurately using the monotonic clock and
shorter by looping at most a few hundred milliseconds.

This is part of a larger performance series.
2019-08-07 14:22:24 -04:00
Matthew Stevenson 5980d0d10d Added unit tests and fixed some build problems 2019-08-02 09:38:35 -07:00
Yash Tibrewal 01ec829945 Mark private methods of DelegatingChannel final (other than WaitForStateChangeImpl and NotifyOnStateChangeImpl) 2019-08-01 16:25:11 -07:00
Yash Tibrewal 3653439ba6 Merge master and move to experimental 2019-08-01 16:15:31 -07:00
Matthew Stevenson 5da4baa80d Fixed typo in define guard 2019-08-01 08:55:36 -07:00
Matthew Stevenson bd8952b214 Added credential_reload and server_authorization_check API's. 2019-07-31 15:15:06 -07:00
Matthew Stevenson 64a8f132e7 "Modified some header inclusions" 2019-07-31 09:09:25 -07:00
Matthew Stevenson 22bf589490 Fixed style of #define guard 2019-07-30 15:14:17 -07:00
Matthew Stevenson 17e1acec0c Fixed scope issue in credentials.h 2019-07-30 14:23:49 -07:00
Matthew Stevenson e26e2b6b8b First Spiffe1 commit 2019-07-29 10:33:34 -07:00
Esun Kim 05d6f9f2b1
Merge pull request #19702 from veblush/move-cronet
Create sub package for cronet
2019-07-24 16:52:26 -07:00
Esun Kim ded9f46c06 Refactored BUILD file to isolate cronet rules 2019-07-24 14:55:35 -07:00
Qiancheng Zhao 29480c4f6b add client idle filter 2019-07-24 10:04:41 -07:00
Esun Kim 1194927905
Merge pull request #19674 from veblush/unset-fortify
Reset _FORTIFY_SOURCE when GPR_BACKWARDS_COMPATIBILITY_MODE
2019-07-19 10:39:01 -07:00
Esun Kim 126ef2f735 Added #undef 2019-07-18 16:24:30 -07:00
Arjun Roy b47d22f7f2 Mark assert failure path as unlikely in codegen.
Also, change an assert to debug assert in callback cpp.
2019-07-18 12:52:18 -07:00
Esun Kim b7ee64c042 Disable _FORTIFY_SOURCE when GPR_BACKWARDS_COMPATIBILITY_MODE 2019-07-17 14:46:04 -07:00
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.
2019-07-09 22:28:44 -07:00
Soheil Hassas Yeganeh 5e35a367d9
Revert "Clearly callout the behavior for listening ports." 2019-07-03 18:52:29 -04:00
Moiz Haidry 5ae9afdc55
Merge pull request #19517 from mhaidrygoog/grpc_to_grpc_impl_async_callback
Move grpc async, callback and sync implementation to grpc_impl namespace
2019-07-03 13:56:36 -07:00
Moiz Haidry d8c0182360 Expose some of the internal codegen interfaces 2019-07-02 12:32:14 -07:00
Soheil Hassas Yeganeh def083b2c8 Clearly callout the behavior for listening ports.
This is to clarify that the port number is a required part
of the listening address.
2019-07-02 14:37:54 -04:00
Moiz Haidry bf994e48d9 Move grpc async, callback and sync implementation to grpc_impl namespace 2019-07-01 14:05:54 -07:00
Karthik Ravi Shankar 0d2d88fce5
Merge pull request #19446 from karthikravis/continue-migration-to-impl
Move more of usage to grpc_impl
2019-06-27 10:24:40 -07:00
Karthik Ravi Shankar bddcb6c906 Don't move ServerContext to impl 2019-06-26 14:28:34 -07:00
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
2019-06-26 12:48:05 -07:00
Karthik Ravi Shankar 748b932d02 Fix header guards 2019-06-26 12:32:31 -07:00