Commit Graph

2480 Commits

Author SHA1 Message Date
Yash Tibrewal 33b4911a50 xDS client security integration 2020-11-20 17:37:27 -08:00
ZhenLian d74e43da95 Add File Watcher Certificate Provider API 2020-11-19 13:36:13 -08:00
yulin-liang 2ffa791ae6 Regenerate projects 2020-11-17 13:10:08 -08:00
Mark D. Roth 27e1c1c56d clang-tidy: enable google-readability-braces-around-statements 2020-11-06 13:41:44 -08:00
ZhenLian 518ed1303c Add Credential Loading From Static Providers For TLS Credentials 2020-10-22 13:55:31 -07:00
Yash Tibrewal b62f33cd39 Fix --define=grpc_no_xds=true build 2020-10-21 15:06:32 -07:00
Esun Kim aae4f4cf18 Fix by misc-unused-using-decls 2020-10-19 18:12:11 -07:00
Esun Kim bba8facb4a
Merge pull request #24456 from veblush/tidy-readability-redundant-smartptr-get
[Clang-Tidy] readability-redundant-smartptr-get
2020-10-19 09:54:15 -07:00
Esun Kim a62a70207c
Merge pull request #24448 from veblush/clang-format-8
Upgrade clang-format 8
2020-10-19 09:29:35 -07:00
Esun Kim 84df61b31a
Merge pull request #24453 from veblush/tidy-modernize-make-unique
[Clang-Tidy] Enable modernize-make-unique
2020-10-16 16:35:08 -07:00
Esun Kim 3fef4e7435 Fix by readability-redundant-smartptr-get 2020-10-16 14:16:42 -07:00
Esun Kim e7434d385e Fix by tidy-modernize-use-override 2020-10-16 14:01:06 -07:00
Esun Kim 6ae8463500 Fix by modernize-make-unique 2020-10-16 13:30:56 -07:00
Esun Kim 34789b2d83 Fix by clang-format-8. 2020-10-16 11:37:18 -07:00
Esun Kim ece76ee1e8 Fix code by readability-container-size-empty 2020-10-16 09:48:20 -07:00
Esun Kim c08f33c437 Fix clang-tidy errors 2020-10-15 16:07:25 -07:00
Yash Tibrewal 4013fd9dc9
Merge pull request #24313 from yashykt/xdscredscpp
C++ API to create Xds channel credentials
2020-10-08 22:27:21 -07:00
Yash Tibrewal c52cb09f47 Add experimental XdsCredentials with support for insecure channel_credentials and security_connector 2020-10-08 20:37:47 -07:00
Karthik Ravi Shankar 30ed4a50aa
Merge pull request #24355 from karthikravis/cleanup
Move channel plugin from grpc_impl to grpc
2020-10-08 17:20:08 -07:00
Esun Kim be23ad0ed1
Merge pull request #24282 from veblush/ios-bump
Bump iOS and OSX version
2020-10-07 16:12:16 -07:00
Donna Dionne aafe657978 Bump version to v1.34.x: regenerate projects 2020-10-07 12:51:27 -07:00
Karthik Ravi Shankar 4f6e13519c Move channel plugin from grpc_impl to grpc
Reverts: https://github.com/grpc/grpc/pull/18375
2020-10-07 12:08:14 -07:00
Karthik Ravi Shankar e549843885 Move remaining classes to grpc from grpc_impl 2020-10-06 13:15:51 -07:00
Esun Kim ccf3cbc6b7 Bump iOS and OSX version 2020-09-30 14:58:30 -07:00
Mark D. Roth b62d5c7eaa Allow channel args to modify service config parsing behavior. 2020-09-29 13:13:26 -07:00
Vijay Pai da7f82fa9c
Properly synchronize thread creation failure case 2020-09-23 10:12:16 -07:00
Vijay Pai f8b046e819 Eliminate ServerContextBase::Clear/Setup and fix unref process for core call 2020-09-22 00:37:25 -07:00
Vijay Pai d0bf9cedcc CallbackRequest is no longer reused, so remove relics to support reuse 2020-09-18 14:12:04 -07:00
Karthik Ravi Shankar 375d92be8d Merge branch 'master' into sync-stream 2020-09-08 15:14:48 -07:00
Karthik Ravi Shankar 67667eb7b6 Revert ... 2020-09-03 08:16:10 -07:00
Karthik Ravi Shankar b657c8d79c
Revert "Revert "Move ServerContext from ::grpc_impl to ::grpc"" 2020-09-02 10:17:00 -07:00
Karthik Ravi Shankar f1abdd1725
Revert "Move ServerContext from ::grpc_impl to ::grpc" 2020-09-01 22:54:54 -07:00
Karthik Ravi Shankar 9afbf02198 Merge branch 'master' into server-context 2020-08-31 17:37:37 -07:00
Karthik Ravi Shankar 694bb50648
Merge pull request #23917 from karthikravis/server
Move Server from ::grpc_impl to ::grpc
2020-08-31 10:33:15 -07:00
Mark D. Roth 30e4170dc3 Update version of master to 1.33-dev ("geeky"). 2020-08-28 09:20:30 -07:00
Karthik Ravi Shankar 4903d62843 Merge branch 'master' into server-context 2020-08-25 11:47:31 -07:00
Karthik Ravi Shankar a68996fdd5 Merge branch 'master' into server 2020-08-25 11:46:42 -07:00
Jan Tattermusch cd90574c80 update ObjC to protobuf v3.13.0 2020-08-25 12:57:21 +02:00
Karthik Ravi Shankar 967c0a2a32 Move Server from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18458
2020-08-20 14:53:17 -07:00
Karthik Ravi Shankar a23578444c Fix and format build after rebase 2020-08-20 14:17:49 -07:00
Vijay Pai b3b304c3ba Remove unneeded data members already present in the base class 2020-08-20 00:45:21 -07:00
Karthik Ravi Shankar dc3e1097e9 Merge branch 'master' into server-context 2020-08-19 14:18:27 -07:00
ZhenLian 0369675656
Merge pull request #23848 from grpc/zhen_alts_peer_attr_plumbing
ALTS peer attributes plumbing
2020-08-19 11:59:46 -07:00
Jan Tattermusch c037f833e4
Merge pull request #23884 from markdroth/server_c++_fix
Destroy health check service before destroying C server.
2020-08-19 08:52:57 +02:00
donnadionne 6b80f4d7f2
Merge pull request #23569 from sammyKhan/master
Return blank span if no call is active.
2020-08-18 13:35:01 -07:00
Mark D. Roth 9a0435e83e Destroy health check service before destroying C server. 2020-08-18 10:33:26 -07:00
ZhenLian 0cdc36f64f ALTS peer attributes plumbing 2020-08-14 17:27:57 -07:00
Karthik Ravi Shankar 56d7d9e804 Move ServerContext from ::grpc_impl to ::grpc 2020-08-13 14:24:29 -07:00
Karthik Ravi Shankar 751b9c105f Move ClientContext from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/19261
2020-08-11 16:28:50 -07:00
Karthik Ravi Shankar 15cce00f52
Revert "Revert "Fold Channel and CompletionQueue from grpc_impl to grpc"" 2020-08-06 20:42:54 -07:00
Karthik Ravi Shankar f3f9e8941a
Revert "Fold Channel and CompletionQueue from grpc_impl to grpc" 2020-08-06 15:56:09 -07:00
Karthik Ravi Shankar bc58a29a5f Merge branch 'master' into channel 2020-08-05 15:21:01 -07:00
Karthik Ravi Shankar ab775de1a2 Build and formatting fixes 2020-08-04 13:31:42 -07:00
Karthik Ravi Shankar 390132c87f Merge branch 'master' into channel 2020-08-04 11:48:10 -07:00
Karthik Ravi Shankar 75469d7ec0 Merge branch 'master' into channel-arguments 2020-08-04 11:39:11 -07:00
Mark D. Roth 0b61aea1c5 Convert grpc_server to idiomatic C++. 2020-08-03 12:56:29 -07:00
Karthik Ravi Shankar 9d81adf3ce
Merge pull request #23600 from karthikravis/server-credentials
Move ServerCredentials from ::grpc_impl to ::grpc
2020-07-31 10:50:32 -07:00
Karthik Ravi Shankar 3c2f4b40e3 Fold Channel and CompletionQueue from grpc_impl to grpc
Reverts: https://github.com/grpc/grpc/pull/19067
2020-07-30 16:45:28 -07:00
Karthik Ravi Shankar 30f7710d4a Move ChannelArguments from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18454
2020-07-30 14:59:53 -07:00
Karthik Ravi Shankar 2a2232275b Merge branch 'master' into fold-errors 2020-07-29 09:59:35 -07:00
Karthik Ravi Shankar be7bab5cb8 Merge branch 'master' into server-credentials 2020-07-28 16:30:07 -07:00
Karthik Ravi Shankar dbec2415bf More local fixes 2020-07-27 11:37:19 -07:00
Karthik Ravi Shankar 1de0bfd9e2
Revert "Revert "Move create_channel and credentials from ::grpc_impl to ::grpc"" 2020-07-24 12:47:33 -07:00
Karthik Ravi Shankar f1bc43edf6
Revert "Move create_channel and credentials from ::grpc_impl to ::grpc" 2020-07-24 11:08:54 -07:00
Karthik Ravi Shankar db3cd51b2f Move ErrorDetails from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18455
2020-07-23 16:58:51 -07:00
Karthik Ravi Shankar 2fc4cfadcf Move ServerCredentials from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18452
2020-07-23 16:18:23 -07:00
Sam Khan 9dc71643fa Return blank span if no call is active.
Otherwise unit tests of gRPC servers that call GetSpanFromServerContext
segfault.
2020-07-23 11:46:37 +02:00
Karthik Ravi Shankar 9ad399384a Merge branch 'master' into create-channel 2020-07-23 00:47:36 -07:00
Jan Tattermusch aa0193db42
Merge pull request #23576 from jtattermusch/bump_master_1_32
update master version to 1.32.0-dev
2020-07-23 07:48:24 +02:00
Richard Belleville 089d90933a
Merge pull request #23203 from gnossen/python_google_default_creds
Implement compute_engine_channel_credentials in Python
2020-07-22 13:14:54 -07:00
Jan Tattermusch 80daba44d9 regenerate projects 2020-07-22 17:38:48 +02:00
Karthik Ravi Shankar 3253bb32e7
Merge pull request #23471 from karthikravis/proto-server
Move ProtoServerReflectionPlugin from grpc_impl to grpc namespace
2020-07-16 14:14:41 -07:00
Karthik Ravi Shankar f9fac8a6b7 Move ProtoServerReflectionPlugin from grpc_impl to grpc namespace
Reverts: https://github.com/grpc/grpc/pull/18600
2020-07-13 14:57:01 -07:00
Karthik Ravi Shankar 69f8d308cb Move LoadReportingServiceServerBuilderOption from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18419/files
2020-07-13 14:50:33 -07:00
Karthik Ravi Shankar e6a6fdb313 Fix secure test 2020-07-13 13:05:42 -07:00
Karthik Ravi Shankar 1999b20c7d Merge branch 'master' into create-channel 2020-07-13 10:58:31 -07:00
Richard Belleville 56ed8f3be4 Merge remote-tracking branch 'origin/master' into python_google_default_creds 2020-07-10 01:09:58 +00:00
Richard Belleville ff5f4bb6fc Add test 2020-07-10 00:31:23 +00:00
Richard Belleville d067b63d48 WIP 2020-07-08 23:09:57 +00:00
Esun Kim 8d0e703393
Merge pull request #22813 from mehrdada/fix-static-initialization-crap
Fix channelz plugin initializer
2020-07-06 11:19:05 -07:00
Karthik Ravi Shankar 44f721eeb0 Merge branch 'master' into create-channel 2020-06-30 15:52:24 -07:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
Karthik Ravi Shankar adcc46abeb
Merge pull request #23345 from karthikravis/revert-23294-revert-23182-server-builder
Revert "Revert "Move ServerBuilder back to ::grpc from ::grpc_impl""
2020-06-29 16:22:53 -07:00
Karthik Ravi Shankar 4e86fa660b
Merge pull request #23305 from karthikravis/channel-posix
Move create_channel_posix from ::grpc_impl to ::grpc
2020-06-29 15:27:17 -07:00
Karthik Ravi Shankar ae4444b072
Merge pull request #23304 from karthikravis/server-posix
Move server posix from ::grpc_impl to ::grpc
2020-06-29 14:55:30 -07:00
Karthik Ravi Shankar 98ae9851d8 Merge branch 'master' into create-channel 2020-06-29 12:12:10 -07:00
Karthik Ravi Shankar 7aadac509c Merge branch 'master' into revert-23294-revert-23182-server-builder 2020-06-29 11:07:17 -07:00
Yash Tibrewal a438ef58f1
Merge pull request #23293 from yashykt/retrychecksize
Add message-size check before message decompression with ordering change
2020-06-26 10:43:52 -07:00
Karthik Ravi Shankar a94d8a1919 Make build and formatting fixes 2020-06-24 17:42:22 -07:00
Karthik Ravi Shankar 7f2eaaabac Move create_channel and credentials from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/18374 and
https://github.com/grpc/grpc/pull/18444

Credentials and create_channel are very closely intertwined, so it is
easier to migrate them together.
2020-06-24 17:34:06 -07:00
Karthik Ravi Shankar ecbbc03c3d Move create_channel_posix from ::grpc_impl to ::grpc
Revert https://github.com/grpc/grpc/pull/18373
2020-06-24 13:00:25 -07:00
Karthik Ravi Shankar 0a13321f15 Merge branch 'master' into server-posix 2020-06-24 12:47:58 -07:00
Karthik Ravi Shankar 9db914a0cc
Revert "Revert "Move ServerBuilder back to ::grpc from ::grpc_impl"" 2020-06-24 12:28:27 -07:00
Yash Tibrewal fc059ded05 Make the same change for max send message size 2020-06-24 11:13:17 -07:00
Yash Tibrewal 557e2ef5b1 Prefer SetMax*MessageSize value over ServerBuilderOption 2020-06-24 10:24:17 -07:00
Mark D. Roth 5c87a42d50
Merge pull request #21905 from markdroth/upb_upgrade
Upgrade upb
2020-06-24 10:06:14 -07:00
Karthik Ravi Shankar 0f64d1f96b
Revert "Move ServerBuilder back to ::grpc from ::grpc_impl" 2020-06-23 18:42:35 -07:00
Karthik Ravi Shankar 6a430fdb80
Merge pull request #23182 from karthikravis/server-builder
Move ServerBuilder back to ::grpc from ::grpc_impl
2020-06-23 16:02:21 -07:00
Karthik Ravi Shankar 3c90c762b3 Move ServerPosix from ::grpc_impl to ::grpc
Revert https://github.com/grpc/grpc/pull/18372/files
2020-06-23 13:56:08 -07:00
Karthik Ravi Shankar f27c30ef60 Fix formatting 2020-06-23 12:49:36 -07:00
Karthik Ravi Shankar 133f38a885 Make changes for ResourceQuota and friend namespaces. 2020-06-23 12:24:14 -07:00
Karthik Ravi Shankar 7166d0124d Merge branch 'master' into server-builder 2020-06-23 12:09:08 -07:00
Karthik Ravi Shankar 8e5d8e64d3 Fix formatting 2020-06-23 12:07:17 -07:00
Karthik Ravi Shankar 4a930208e7 Merge branch 'master' into healthcheck 2020-06-23 12:04:32 -07:00
Karthik Ravi Shankar 70465c92ec
Merge pull request #23180 from karthikravis/opencensus
Move OpenCensus back to ::grpc from ::grpc_impl
2020-06-23 11:31:43 -07:00
Karthik Ravi Shankar 1bf54724f4 Merge branch 'master' into healthcheck 2020-06-22 17:24:40 -07:00
Karthik Ravi Shankar f0d2aff3c7 Merge branch 'master' into opencensus 2020-06-22 17:24:05 -07:00
Karthik Ravi Shankar 6657ea64eb Merge branch 'master' into resource-quota 2020-06-22 17:22:53 -07:00
Karthik Ravi Shankar 31e6b69c8e Merge branch 'master' into server-builder 2020-06-22 13:59:33 -07:00
Jan Tattermusch 89be9c27f1
Merge pull request #23220 from chalin/chalin-docs-fix-grpc-io-links-200616
Docs: fix links to grpc.io quick start, tutorial and other pages
2020-06-22 14:11:53 +01:00
Vijay Pai 7eebba3781 Fixes needed to make roll-forward of StartCall and corking work 2020-06-16 13:06:16 -07:00
Vijay Pai 1dd7a01bc7
Avoid a use of ReleasableMutexLock 2020-06-16 08:25:12 -07:00
Patrice Chalin 5ac3aa789f Docs: fix links to grpc.io tutorial pages 2020-06-16 08:47:24 -04:00
Mark D. Roth 11d50d9592 Merge remote-tracking branch 'upstream/master' into upb_upgrade 2020-06-15 15:24:10 -07:00
Karthik Ravi Shankar ac68bf72b6 Move HealthCheckInterface from ::grpc_impl to ::grpc
Revert #18371
2020-06-10 23:01:54 -07:00
Karthik Ravi Shankar 934cf3e3df Move ServerBuilder back to ::grpc from ::grpc_impl
Revert #18510
2020-06-10 22:47:29 -07:00
Karthik Ravi Shankar 7fa6826134 Merge branch 'master' into opencensus 2020-06-10 17:47:16 -07:00
Karthik Ravi Shankar e55267a6fd Resolve conflicts 2020-06-10 17:41:45 -07:00
Karthik Ravi Shankar 89763a96fd Move OpenCensus back to ::grpc from ::grpc_impl
Revert - Revert "Revert "Fold opencensus into grpc_impl namespace"" #18396
2020-06-10 17:36:58 -07:00
Karthik Ravi Shankar 451436e154 Revert https://github.com/grpc/grpc/pull/18345
Move ResourceQuota to grpc.
2020-06-10 17:24:33 -07:00
Srini Polavarapu 057091fe1f Regenerate projects 2020-06-05 13:54:32 -07:00
Mark D. Roth cc6414893c update bazel build dep, regenerate upb files, and add missing includes 2020-06-02 14:48:50 -07:00
Stanley Cheung 6f72faa74b Update to protobuf 3.12.2 2020-05-29 13:50:27 -07:00
Stanley Cheung eccbac3443 Update grpc protoc plugins to support proto3 optional 2020-05-29 13:50:18 -07:00
Karthik Ravi Shankar 063704ebad
Revert "Update grpc protoc plugin to be compliant of proto3 field presence" 2020-05-29 11:21:24 -07:00
Stanley Cheung f70ebf85a6 Update to protobuf 3.12.2 2020-05-27 18:30:12 -07:00
Stanley Cheung dc9b100865 Update grpc protoc plugins to support proto3 optional 2020-05-27 18:30:12 -07:00
jiangtaoli2016 12a6435557 TlsCredentialsOption API optimization 2020-05-11 22:46:11 -07:00
Jan Tattermusch 8fa1b33c26
Merge pull request #22252 from zackgalbreath/clarify_docs
Documentation improvements
2020-05-07 19:06:27 +02:00
Nicolas "Pixel" Noble 791729d09f Bumping version. 2020-04-30 08:12:29 +02:00
Mehrdad Afshari 99367a7f98 Fix plugin initializers
Previous code not threadsafe nor idiomatic
2020-04-28 20:16:39 -07:00
Jan Tattermusch 7f2af36ddc update ObjC podspecs to protobuf 3.11.4 2020-04-27 04:51:38 -04:00
Mark D. Roth 09b42371e7 Remove grpc_core::InlinedVector<> and grpc_core::Optional<>. 2020-04-23 11:24:41 -07:00
Vijay Pai b797dbec3e Allocating request matcher to support C++ callback API 2020-04-22 10:53:08 -07:00
Vijay Pai 69eb582448 Register CQ at the right place 2020-03-23 13:47:14 -07:00
Srini Polavarapu 9ceb9e2970
Merge pull request #22349 from chalin/patch-1
C++ README: fix link to tutorial
2020-03-18 15:09:55 -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
Jan Tattermusch d99b541656
fix a nit in the cmake instructions 2020-03-17 10:53:37 +01:00
Zack Galbreath 79f1a07cc1 Improve FetchContent example in docs
* Provide a complete copy/pasteable CMakeLists.txt file
* Add link to install-prereqs docs
2020-03-16 09:27:42 -04:00
Patrice Chalin b8514eab47
C++ README: fix link to tutorial
Supersedes #20996, which was approved in 2019/11 but still doesn't have a signed CLA.
2020-03-13 21:47:06 -04: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
Matthew Stevenson 864e232edf Update TlsServerCredentials to initialize C-core. 2020-02-28 13:23:51 -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 88096215a3 Merge with HEAD 2020-02-26 19:59:06 -08:00
Moiz Haidry ede2ffc1a8 Addressed Mark's comments 2020-02-26 12:51:35 -08:00
Richard Belleville 5ef379870d Regenerate projects 2020-02-26 10:39:34 -08:00
Moiz Haidry 67565b767d CallCredentials debug string API 2020-02-25 16:09:03 -08:00
apolcyn 17036c1452
Merge pull request #21698 from apolcyn/bump_g_stands_for
Bump g stands for
2020-02-21 10:53:47 -08:00
Esun Kim 7a14955759 Replaced grpc_core::MakeUnique with absl::make_unique 2020-02-20 09:46:56 -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
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
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
matthewstevenson88 e31532c155
Merge pull request #21852 from matthewstevenson88/tls-credentials-1
Updates to TLS credentials, version 3
2020-02-05 13:10:07 -08:00
Vijay Pai 152f46b5f6 Move generic stub implementation to header (prepare for templates) 2020-02-04 23:42:22 -08:00
Matthew Stevenson f557437b51 Add back changes. 2020-01-30 15:26:51 -08:00
Mark D. Roth 2e7d6b94ea
Merge pull request #21242 from markdroth/json_new_api
Convert channelz code to use new JSON API
2020-01-30 15:20:40 -08:00
Karthik Ravi Shankar f59929b77a
Merge pull request #21826 from ColdMeekly/patch-1
Fixed link to http_archive
2020-01-30 15:06:41 -08:00
Mark D. Roth bc5e3fb661 Convert channelz code to use new JSON API 2020-01-30 10:57:53 -08:00
Mark D. Roth f961942266 Convert security code to use new JSON API 2020-01-30 07:44:22 -08:00
matthewstevenson88 9e0b87f523
Revert "Updates to TLS credentials, version 2" 2020-01-29 12:24:21 -08:00
ColdMeekly 2b962414d6
Fixed link to http_archive
https://github.com/grpc/grpc/issues/21391#issue-533392695
2020-01-29 14:29:44 +00: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
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
Vijay Pai b7239efc82 Weaken reinterpret_cast to static_cast 2020-01-25 10:49:28 -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
Matthew Stevenson 5cfff04ce9 Collect TLS-specific changes from PR 2-568. 2020-01-22 13:06:22 -08:00
Vijay Pai 3b7286f1a1 Alarm callback should run on executor 2020-01-21 23:52:47 -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
Alexander Polcyn 1197454f5a Regenerate projects 2020-01-17 15:36:25 -08:00
Vijay Pai 5969ce612d
Merge pull request #21680 from vjpai/cq_ordering
Log an error (in dbg mode) if CQ is Shutdown before its Server(s)
2020-01-17 13:43:06 -08:00
apolcyn 232fa12972
Merge pull request #21590 from jtattermusch/protobuf_3_11_2
Update third_party/protobuf to v3.11.2
2020-01-16 14:15:12 -08: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
Zhen Lian d16b7b8006 MacOS make fix 2020-01-15 13:45:32 -08:00
Jan Tattermusch 6393e17a15 hotfix: update Protobuf-C++.podspec to 3.11.2 2020-01-15 04:43:59 -05: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
yang-g 138ce26bb5 Fixes 2020-01-06 16:41:09 -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
Akshay Kumar db11b94f25 FullChainExperimental-01-200103 2020-01-03 22:37:18 -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
Jan Tattermusch 9e95ff96ee
Merge pull request #21467 from zackgalbreath/cmake_docs
Updated documentation for using gRPC C++
2019-12-23 16:16:44 +01:00
Vijay Pai 027eb3b05b
Merge pull request #21532 from vjpai/deadline
Properly set up deadline for generic callback requests
2019-12-19 23:03:09 -08:00
Vijay Pai 9ccc6b0e38 Properly set up deadline for generic requests 2019-12-19 18:54:35 -08:00
Zack Galbreath d51ef5feca Drop superbuild instructions
In the interest of not providing too many different ways to build
gRPC in our official instructions, we are dropping the section describing
how to do a "superbuild" (ExternalProject_Add). We can still point to the
example and distribtest if someone is curious how to do this.
2019-12-19 09:50:51 -05:00
Zack Galbreath 684aa48063 Updated documentation for using gRPC C++
Improve the documentation on how to use gRPC C++ from another project,
particularly for CMake.
2019-12-17 11:17:05 -05: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
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
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
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
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
Richard Belleville 683986ae6c
Merge pull request #21249 from ajamato/grpc_census_tags
Census client filter: use current span and tags
2019-12-04 13:20:07 -08:00
Vijay Pai 88874094be Actually implement the generic reactor-based unary call. 2019-12-04 11:41:47 -08:00
Vijay Pai 5b9f997d44
Merge pull request #21368 from vjpai/conditional_deexperimentalize_pt2
Add more non-experimental content under an ifdef
2019-12-04 10:58:04 -08:00
Alex Amato 2e958cf01b (Census client filter: use current span and tags. original_author=g-easy) 2019-12-04 09:47:18 -08:00
Jan Tattermusch 45da08fd0d
Merge pull request #21329 from jtattermusch/improve_building_instructions
Improve & update BUILDING.md
2019-12-04 18:03:07 +01:00
Vijay Pai 62e01dd922 Add non-experimental:: versions under ifdef 2019-12-04 06:27:41 -08:00
Vijay Pai d991de12e8
Merge pull request #21354 from vjpai/conditional_deexperimentalize
De-experimentalize generic features of callback API under an ifdef
2019-12-04 06:11:38 -08:00
Vijay Pai b8cebf0814
Fix a TODO 2019-12-03 16:43:50 -08:00
Richard Belleville 6feae07504 Regenerate projects 2019-12-03 15:08:50 -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
Jan Tattermusch ac1c5de1b3
cmake -> CMake
Co-Authored-By: Zack Galbreath <zack.galbreath@kitware.com>
2019-12-02 16:37:07 +01:00
Jan Tattermusch 9c76310b85
cmake -> CMake
Co-Authored-By: Zack Galbreath <zack.galbreath@kitware.com>
2019-12-02 16:36:49 +01:00
Jan Tattermusch b31ce2f89e
cmake -> CMake
Co-Authored-By: Zack Galbreath <zack.galbreath@kitware.com>
2019-12-02 16:36:34 +01:00
Jan Tattermusch 48b1f8d369 more updates to building & installation 2019-11-28 15:42:44 +01: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
Zhen Lian fe9576c861 [Exposing ALTS Context 2/2] Provide a Utility Function to Get Context 2019-11-25 15:56:33 -08:00
Vijay Pai be6979202b Revamp server-side C++ callback API, message allocator, and mocking 2019-11-20 16:56:18 -08:00
Vijay Pai 55748facd8 Fix server shutdown ordering issue 2019-11-18 00:30:13 -08:00
Esun Kim f40a702441 Clean up headers 2019-11-15 09:38:31 -08:00
Vijay Pai 405d7b4ce0 Ban use of std::sync constructs 2019-11-13 10:04:36 -08:00
Yash Tibrewal bd0aa9a600
Merge pull request #20906 from yashykt/removrun
Remove GRPC_CLOSURE_RUN and replace with grpc_core::Closure::Run
2019-11-08 14:12:07 -08:00
Esun Kim e45b60d1fe Fix unique_ptr<char> memory allocation mismatch 2019-11-07 17:53:59 -08:00
Yash Tibrewal fe88f14410 Merge branch 'master' into removrun 2019-11-07 15:13:03 -08:00
Esun Kim b2b7fc9af8 Replaced grpc_core::UniquePtr with std::unique_ptr 2019-11-07 13:05:39 -08:00
Yash Tibrewal 08ba7246c0 Remove GRPC_CLOSURE_RUN and replace with grpc_core::Closure::Run 2019-11-01 16:21:16 -07:00
Jan Tattermusch 942e4688fc add vcpkg instructions 2019-10-29 13:15:29 -04:00
Vijay Pai a3689a8b6c Properly handle race at thread creation 2019-10-25 12:35:20 -07:00
Vijay Pai 19a57f0f96
Revert "c++ check if workerthread could be spawned" 2019-10-25 11:18:03 -07:00
Yash Tibrewal 8a6d71c284
Merge pull request #20724 from yashykt/executornew
Move scheduling logic of executor closures to run time rather than initialization time
2019-10-24 15:43:46 -07:00
Yash Tibrewal b0be9aa8df Merge branch 'master' into executornew 2019-10-24 12:29:59 -07:00
Yash Tibrewal 07ef24344c Regenerate projects 2019-10-24 11:54:20 -07:00
Yash Tibrewal 50a8141983 Move scheduling logic of executor closures to run time rather than initialization time 2019-10-22 11:28:06 -07:00
Vijay Pai ab72f441d8 Remove unused-parameter warnings, round 2 (14 of 19) 2019-10-21 09:16:34 -07:00
Vijay Pai f07de42777
Merge pull request #20660 from vjpai/remove_warn_1
Remove unused parameter warnings (1 of 20)
2019-10-17 13:56:38 -07:00
Vijay Pai fe30ef5489 clang-format 2019-10-17 09:03:48 -07:00
Vijay Pai 41d89242ad Remove unused parameter warning (2 of 20) 2019-10-17 08:50:44 -07:00
Vijay Pai 5a88028c89 Remove unused parameter warning (1 of 20) 2019-10-17 08:50:38 -07:00
Vijay Pai 84895f6f57
Merge pull request #20632 from vjpai/remove_some_warnings
Remove all unused parameter warnings from include/ and src/core
2019-10-17 06:15:24 -07:00
Vijay Pai 6e4d2e86dc
Merge pull request #20376 from chrisse74/master
c++ check if workerthread could be spawned
2019-10-16 23:38:38 -07:00
Vijay Pai 2a12890ba2
Merge pull request #20627 from vjpai/for_src_client_server
Use range-based fors in src/cpp/{client,server}
2019-10-16 23:37:20 -07:00
Vijay Pai d89ed99561
Merge pull request #20626 from vjpai/for_src_common
Use C++11 range-based fors in src/cpp/common
2019-10-16 23:37:08 -07:00
Vijay Pai 500b0e6d8e Remove unused parameter warnings from include/ and src/core 2019-10-16 13:31:51 -07:00
Vijay Pai d6998122db Use range-based fors in src/cpp/{client,server} 2019-10-16 11:58:38 -07:00
Vijay Pai b7705ce2ee Use C++11 range-based fors 2019-10-16 11:36:54 -07:00
Vijay Pai 6f9fe64626 Improve logging on API misuse assert 2019-10-16 10:44:10 -07:00
Vijay Pai 02c3bd6c2c
One more formatting change 2019-10-16 01:27:21 -07:00
Vijay Pai f586be8532 Fix formatting 2019-10-16 01:14:05 -07:00
Christian Maurer 827fd04402 moved created() into header file 2019-10-16 08:30:37 +02:00
Christian Maurer bbb66caa64 rename isCreated, make it inline const 2019-10-16 08:01:53 +02:00
Vijay Pai f841c3ea30
Merge pull request #8693 from thinkerou/use_cpp11_for
Use range-based for loops on c++11
2019-10-15 14:53:57 -07:00
matthewstevenson88 0362df725f
Merge pull request #19778 from matthewstevenson88/spiffe1
Add C++ wrapper for SPIFFE credentials v2
2019-10-10 10:34:04 -07:00
Matthew Stevenson ed198f5a54 Changed delete per Yang's comment. 2019-10-08 21:07:29 -07:00
tanjunchen 64cdea5a07 fix some spelling mistakes in document 2019-10-04 09:07:35 +08:00
Matthew Stevenson 00cce90adf Changes requested by Yihua. 2019-10-01 16:06:01 -07:00
Matthew Stevenson fba2fc2dba Fourth 2019-09-27 14:30:49 -07:00
Matthew Stevenson f503a60855 Third 2019-09-27 09:00:05 -07:00
Matthew Stevenson d866d09b5c Second round of small changes from e2e tests. 2019-09-26 21:26:57 -07:00
Matthew Stevenson a7f9d943d5 First set of small changes from development of e2e tests. 2019-09-26 18:13:59 -07:00
Christian Maurer ed9ec64cea Check if workerthread could be spawned 2019-09-26 09:21:56 +02:00
Matthew Stevenson 10a39b77c6 Implemented changes outlined in addendum to design doc. 2019-09-25 10:46:13 -07:00
Matthew Stevenson 5639867c2b Clang changes. 2019-09-20 16:09:32 -07:00
Matthew Stevenson 8e09d8745d Implementing further comments by Yang. 2019-09-20 16:01:10 -07:00
Matthew Stevenson 0a054cc6ea Implementing Yang's secound round of comments. 2019-09-20 08:59:34 -07:00
Matthew Stevenson 96c24347f7 Refactored the configs, per Yang's suggestions. 2019-09-19 11:36:37 -07:00
Matthew Stevenson 65c9ece139 Forgot to run clang_format after previous build changes. 2019-09-18 15:00:37 -07:00
Matthew Stevenson 43f9058565 Changed include orders to remove dependency of grpc++_base_unsecure library on grpc_security.h. 2019-09-18 11:26:50 -07:00
Matthew Stevenson 282aef6031 Minor fixes revealed from developping the end-to-end tests. 2019-09-16 13:51:31 -07:00
Matthew Stevenson a300865dd2 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-09-16 10:43:55 -07:00
Karthik Ravi Shankar 939830aa15
Merge pull request #20030 from karthikravis/move-method-handler
Make MethodHandler and related interfaces generic
2019-09-10 21:45:08 -07:00
Esun Kim cf444b9cab Regenerate projects 2019-09-10 14:08:50 -07:00
Karthik Ravi Shankar 7ec1a9663d Merge branch 'master' into move-method-handler 2019-09-06 12:21:29 -07:00
Yash Tibrewal 97f1f57dab Allow call credentials to be set even after the call is created but before initial metadata is sent 2019-09-05 18:13:59 -07:00
Vijay Pai 7235091dc2 Don't start AuthMetadataProcessor threadpool for non-blocking processor 2019-09-05 10:41:32 -07:00
thinkerou 3a28314343
Merge branch 'master' into use_cpp11_for 2019-09-05 09:03:58 +08:00
Matthew Stevenson ff9697acd7 Changed SPIFFE credentials naming to TLS credentials, per Jiangtao's comments. 2019-09-03 10:50:37 -07:00
Karthik Ravi Shankar ce29926334 Merge branch 'master' into move-method-handler 2019-09-03 08:08:18 -07:00
Matthew Stevenson 65bf49abba Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-30 09:39:02 -07:00
Yash Tibrewal afadd42297
Merge pull request #20058 from yashykt/createchannelbadcreds
Init needs to be called in case of bad creds
2019-08-28 18:14:52 -07:00
Karthik Ravi Shankar de2006d3e1 Merge branch 'master' into move-method-handler 2019-08-28 14:01:58 -07:00
Vijay Pai 5bf8760d3c
Merge pull request #19957 from g-easy/tags
Use opencensus::tags::TagKey.
2019-08-28 06:16:50 -07:00
Matthew Stevenson 3b5973c187 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-27 15:32:44 -07:00
Matthew Stevenson 9457917ed1 Autogenerated files and clang format/tidy code 2019-08-27 15:19:43 -07:00
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 90839c5e0f Changed naming style of C schedule/cancel functions. 2019-08-26 14:40:37 -07:00
Matthew Stevenson 5d9297d0bc Fixed some memory leaks 2019-08-26 14:31:16 -07:00
Juanli Shen 4dffd82524 Fix type unmatch 2019-08-24 11:57:57 -07:00
Matthew Stevenson c2fd3844dc Implemented Yihua's comments 2019-08-23 16:20:19 -07:00
Yash Tibrewal 5294f49d11 Init needs to be called in case of bad creds 2019-08-23 15:34:57 -07:00
Matthew Stevenson 94d3e95e8d Small changes to/for unit tests. 2019-08-23 11:22:12 -07:00
Matthew Stevenson 9da9c0786d Added a line in build.yaml and starting to clean up memory leaks in unit tests 2019-08-22 09:50:09 -07:00
Karthik Ravi Shankar 28b0671235 Make MethodHandler and related interfaces generic 2019-08-21 16:12:48 -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 0e65b7a20c Restored tls_credentials_options.cc 2019-08-20 13:26:57 -07:00
Matthew Stevenson bcc458fb37 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-20 11:55:52 -07:00
easy 6bca0f04a3 Use opencensus::tags::TagKey.
opencensus::stats::TagKey is deprecated.
2019-08-16 19:14:09 +10:00
Matthew Stevenson 1e46b38d66 Hid some key materials API's and refactored credential reload arg wrapper. 2019-08-14 13:11:27 -07:00
Arjun Roy 6cf05561ce Added overloads for metadata add/remove operations when static index is known.
In several cases, we wish to add or remove metadata when we already know what
kind of metadata it is (e.g. we know we're dealing with the path, or the
authority, or the user agent, etc.).

In these cases, we do not need to re-compute the metadata batch callout index
since we know it a-priori. This saves us some branches and ALU ops spent
pointlessly re-computing these indices in several hot-path filters.

We do need the original methods where we do compute the indices in cases where
we're operating over a collection of metadata, but this is relatively uncommon.
2019-08-14 10:51:59 -07:00
Matthew Stevenson f3f8bf05b2 Fix conflicts with ssl_utils.h 2019-08-13 12:18:31 -07: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
Esun Kim f7454a9876 Modified health_check to use upb proto instead of nanopb 2019-08-07 09:16:08 -07:00
Matthew Stevenson 5980d0d10d Added unit tests and fixed some build problems 2019-08-02 09:38:35 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
Matthew Stevenson 64a8f132e7 "Modified some header inclusions" 2019-07-31 09:09:25 -07:00
Arjun Roy 557446a11e Added specializations for grpc_mdelem_create.
In several cases, we create grpc mdelem structures using known-static
metadata inputs. Furthermore, in several cases we create a slice on
the heap (e.g. grpc_slice_from_copied_buffer) where we know we are
transferring refcount ownership. In several cases, then, we can:

1) Avoid unnecessary ref/unref operations that are no-ops (for static
   slices) or superfluous (if we're transferring ownership).
2) Avoid unnecessarily comprehensive calls to grpc_slice_eq (since
   they'd only be called with static or interned slice arguments,
   which by construction would have equal refcounts if they were
   in fact equal.
3) Avoid unnecessary checks to see if a slice is interned (when we
   know that they are).

To avoid polluting the internal API, we introduce the notion of
strongly-typed grpc_slice objects. We draw a distinction between
Internal (interned and static-storage) slices and Extern (inline and
non-statically allocated). We introduce overloads to
grpc_mdelem_create() and grpc_mdelem_from_slices() for the fastpath
cases identified above based on these slice types.

From the programmer's point of view, though, nothing changes - they
need only use grpc_mdelem_create() and grpc_mdelem_from_slices() as
before, and the appropriate fastpath will be picked based on type
inference. If no special knowledge exists for the slice type (i.e. we
pass in generic grpc_slice objects), the slowpath method will still
always return correct behaviour.

This is good for:
- Roughly 1-3% reduction in CPU time for several unary/streaming
  ping pong fullstack microbenchmarks.
- Reduction of about 15-20% in CPU time for some hpack parser
  microbenchmarks.
- 10-12% reduction of CPU time for metadata microbenchmarks involving
  interned slice comparisons.
2019-07-30 17:07:44 -07:00
Prashant Jaikumar 232725b99a Add C++ Cronet end2end tests 2019-07-29 10:48:35 -07:00
Matthew Stevenson e26e2b6b8b First Spiffe1 commit 2019-07-29 10:33:34 -07:00
yang-g 5779dd935a Qualify the error code with StatusCode:: 2019-07-10 13:52:31 -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
Moiz Haidry bf994e48d9 Move grpc async, callback and sync implementation to grpc_impl namespace 2019-07-01 14:05:54 -07:00
Moiz Haidry 63083d4472 Code cleanup 2019-06-21 11:19:34 -07:00
Moiz Haidry 3ce20819cf Modify codegen to use grpc_impl namespace and other cleanups 2019-06-21 10:51:57 -07:00
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Moiz Haidry 186875337c Sync with master 2019-06-11 16:16:27 -07:00
Karthik Ravi Shankar e4b992ee48 Merge branch 'master' into migrate-client-context 2019-06-10 14:01:28 -07:00
Yash Tibrewal 6ed651356d Fix typo 2019-06-07 16:28:31 -07:00
Karthik Ravi Shankar 522ddfe273 Move ClientContext to grpc_impl
ClientContext is another file which needs to be moved from grpc to
grpc_impl for referencing it.
2019-06-05 16:31:39 -07:00
Moiz Haidry 226e63dd0c Move server context implementation to grpc_impl namespace and typedef the ref to it 2019-06-05 10:41:30 -07:00
yang-g c156653997 Add listner fd as part of the external connection parameters 2019-06-03 10:38:37 -07:00
Yang Gao 07c9f7a36b
Merge pull request #19139 from yang-g/plugin_creds
Avoid accessing freed auth_metadata_context in C++ plugin.
2019-05-31 14:35:52 -07:00
yang-g a874fd8bbb Resolve review comments 2019-05-30 15:20:10 -07:00
Srini Polavarapu d80650db31
Merge pull request #19143 from weiyongji/master
typo fix
2019-05-29 21:36:22 -07:00
yang-g bd97b1361d Delete wrapper in executor thread to avoid self-joining deadlock 2019-05-29 13:30:28 -07:00
yang-g 47dbf1dd26 Second approach 2019-05-28 23:47:29 -07:00
Yash Tibrewal 3893a6379b Clean up 2019-05-28 11:57:57 -07:00
weiyongji 57cc401597 typo fix 2019-05-25 11:20:08 +08:00
Yash Tibrewal 4746a8734d Merge branch 'master' into validatesvccfg 2019-05-24 15:27:16 -07:00
Yash Tibrewal 886dc10daa Move validate_service_config to a new file 2019-05-24 14:29:16 -07:00
Karthik Ravi Shankar dc9897dfe3
Merge pull request #19067 from karthikravis/channel-cq-scq-impl
Fold Channel and CompletionQueue into grpc_impl
2019-05-22 16:10:58 -07:00
Yash Tibrewal 41ae267107 Remove unnecessary header 2019-05-20 11:46:18 -07:00
Yash Tibrewal f63dde8e8e Make validation function a global function 2019-05-20 11:45:07 -07:00
Vijay Pai 570bf332bc
Memset in channel_filter ctor not needed
and causes compiler warnings. Thanks to @KeithMoyer  in #19044 and @soheilhy
2019-05-17 10:27:18 -07:00
Karthik Ravi Shankar 03b079499c Move CompletionQueue and Channel 2019-05-17 09:16:32 -07:00
Karthik Ravi Shankar 40210d3b8a Move Channel to grpc_impl 2019-05-17 09:12:33 -07:00
yang-g c639da7a1d Merge branch 'master' of https://github.com/grpc/grpc into port_sharing 2019-05-16 09:07:55 -07:00
yang-g ec6e7fd941 Rename enum 2019-05-16 09:07:34 -07:00
Karthik Ravi Shankar 3996599392 Fix clang script errors 2019-05-15 14:30:33 -07:00
Karthik Ravi Shankar 772a74aced Revert changes to Channel 2019-05-15 14:24:17 -07:00
Karthik Ravi Shankar 6be0b06c69
Revert "Fold CompletionQueue and ServerCompletionQueue into grpc_impl" 2019-05-15 13:38:34 -07:00
Yash Tibrewal f299391f15 Add GrpcLibraryInitializer 2019-05-14 10:36:49 -07:00
Yash Tibrewal 15d8fd9b23 Missing error unref 2019-05-13 16:09:48 -07:00
Yash Tibrewal 4e711fab64 Add method to validate and set service config json 2019-05-13 14:53:36 -07:00
yang-g de57783beb Merge with head and resolve conflict 2019-05-13 08:56:02 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Karthik Ravi Shankar af32f6ce2e Merge branch 'master' into grpc_namespace_completion_queue 2019-05-09 14:12:52 -07:00
yang-g 7c051556a6 Rename internal class 2019-05-08 08:54:54 -07:00
yang-g 898fc0da1e More fixes 2019-05-07 22:45:39 -07:00
yang-g 68b5260b74 Resolve comments 2019-05-07 14:33:51 -07:00
yang-g 152a7cc122 Resolve comments 2019-05-06 15:42:18 -07:00
yang-g abd97b9170 Merge with head and resolve conflict 2019-04-30 23:01:01 -07:00
Karthik Ravi Shankar 5de22c4bd4 Merge branch 'master' into grpc_namespace_completion_queue 2019-04-30 17:46:33 -07:00
Karthik Ravi Shankar baef4b1d60 Merge branch 'master' into grpc_namespace_channel_new 2019-04-30 17:39:48 -07:00
Karthik Ravi Shankar 549230467b
Merge pull request #18720 from grpc/revert-18717-grpc_namespace_server_revert
Revert "Revert "Merge pull request #18458 from grpc/grpc_namespace_server""
2019-04-30 17:30:29 -07:00
Karthik Ravi Shankar e17ce91d16 Fix make errors 2019-04-30 17:08:07 -07:00
Karthik Ravi Shankar 3a31b96ef9 Fix error from make 2019-04-30 16:39:54 -07:00
Karthik Ravi Shankar 9eec789a4d Merge branch 'grpc_namespace_channel_new' into grpc_namespace_completion_queue 2019-04-30 15:51:49 -07:00
Karthik Ravi Shankar e3a0c85960 Merge branch 'master' into grpc_namespace_channel_new 2019-04-30 14:30:03 -07:00
yang-g ac3a91edf8 Support accepting external connections. 2019-04-30 12:31:34 -07:00
Karthik Ravi Shankar 6b0806eae3 more formatting changes 2019-04-30 11:22:04 -07:00
Karthik Ravi Shankar 5f6a57a4d0 Formatting issues 2019-04-26 13:08:25 -07:00
Karthik Ravi Shankar 7fc86bd62f Fix make errors 2019-04-24 10:40:41 -07:00
Karthik Ravi Shankar 360251f196 Fix make errors 2019-04-23 18:23:16 -07:00
Karthik Ravi Shankar 38ffd8ca84 Merge branch 'master' into grpc_namespace_credentials 2019-04-23 18:22:09 -07:00
Karthik Ravi Shankar c8a6841dfc Merge branch 'master' into revert-18717-grpc_namespace_server_revert 2019-04-23 18:14:02 -07:00
Yang Gao 5170c613cc
Merge pull request #18784 from yang-g/message_allocator
Message allocator support for callback unary
2019-04-23 15:49:49 -07:00
Karthik Ravi Shankar 5274deb32b Fix the rebase and build 2019-04-23 14:12:48 -07:00
Karthik Ravi Shankar 2049b6c2bd Fix build errors 2019-04-23 14:04:17 -07:00
Karthik Ravi Shankar 60bdeef9f4 Move Channel also to impl for now 2019-04-23 14:03:06 -07:00
Karthik Ravi Shankar 8d2207da4d WIP: New changes to make namespace work 2019-04-23 13:56:29 -07:00
Karthik Ravi Shankar 603d014f0e Changes to fold credentials into grpc_impl from grpc 2019-04-23 13:54:26 -07:00
Karthik Ravi Shankar 858b5cca20 Fix clang_format_code.sh issues and move the internal calls to new name 2019-04-23 11:45:11 -07:00
Karthik Ravi Shankar 17ca558e13 Merge branch 'master' into grpc_namespace_channel_arguments 2019-04-23 11:38:13 -07:00
yang-g 41824319fa Resolve review comments 2019-04-23 08:54:36 -07:00
Soheil Hassas Yeganeh 2b9448a71c Revert "Revert "Introduce C++ wrappers for gpr_mu and gpr_cv.""
This reverts commit d09c9f8e20.
2019-04-17 14:35:29 -04:00
yang-g 6929cdd654 initial 2019-04-16 15:43:58 -07:00
Alexander Polcyn d09c9f8e20 Revert "Introduce C++ wrappers for gpr_mu and gpr_cv."
This reverts commit a26c09dd25.
2019-04-11 16:52:54 -07:00
Karthik Ravi Shankar 62fb156122 Fold CompletionQueue and ServerCompletionQueue into grpc_impl 2019-04-11 13:16:32 -07:00
Karthik Ravi Shankar 2554f122c1 Remove unecessary files 2019-04-11 12:06:41 -07:00
Karthik Ravi Shankar 973fa6950e Fold Channel into grpc_impl from grpc namespace 2019-04-11 12:04:23 -07:00
Vijay Pai ea59977fbc
Merge pull request #18687 from vjpai/cancel_order
C++ Callback API: Make sure that OnCancel happens after OnStarted
2019-04-10 16:15:43 -07:00
Karthik Ravi Shankar 2e88231fc0
Revert "Revert "Merge pull request #18458 from grpc/grpc_namespace_server"" 2019-04-10 15:04:05 -07:00
Soheil Hassas Yeganeh e85dd2e644 Fix build errors 2019-04-10 14:15:28 -07:00
Karthik Ravi Shankar f03b309787 Revert "Merge pull request #18458 from grpc/grpc_namespace_server"
This reverts commit dc1089a6d1, reversing
changes made to 31843787cc.

This change also includes - Revert "Merge pull request #17932 from soheilhy/gprpp-mutex"

This reverts commit df4b6a763d, reversing
changes made to dc1089a6d1.
2019-04-10 13:54:05 -07:00
Karthik Ravi Shankar dad3f34207
Revert "Revert "Revert "Folding the Channel class into the grpc_impl namespace.""" 2019-04-10 12:14:04 -07:00
Vijay Pai 41c6cba9f5 Make sure that OnCancel happens after OnStarted 2019-04-10 11:32:34 -07:00
Karthik Ravi Shankar 891b6cf7ae
Revert "Folding CompletionQueue and ServerCompletionQueue." 2019-04-10 10:22:59 -07:00
Yash Tibrewal 8e407f74b7
Merge pull request #18630 from yashykt/lamechannelinterception
Make C++ Channel Interceptors work for lame channels
2019-04-09 20:21:54 -07:00
Yash Tibrewal 8e195ddeb9 Merge branch 'master' into lamechannelinterception 2019-04-09 15:30:16 -07:00
Karthik Ravi Shankar d2b2f7f5a3 Merge branch 'master' into completion-queue-fold 2019-04-09 13:44:33 -07:00
Karthik Ravi Shankar afd602ccba Merge branch 'master' into completion-queue-fold 2019-04-09 10:46:03 -07:00
Karthik Ravi Shankar 5a08d2aae7 Merge branch 'master' into revert-18076-revert-17797-channel 2019-04-09 08:22:37 -07:00
Karthik Ravi Shankar 53c5bf5ced Merge branch 'master' into revert-18076-revert-17797-channel 2019-04-08 16:04:24 -07:00
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.
2019-04-08 18:27:07 -04:00
Karthik Ravi Shankar 9875fabdd4 Merge branch 'master' into revert-18076-revert-17797-channel 2019-04-08 12:55:07 -07:00
Karthik Ravi Shankar 958f373d32 Merge branch 'master' into grpc_namespace_server 2019-04-08 12:42:37 -07:00
Karthik Ravi Shankar 0141f9a55b Merge branch 'master' into grpc_namespace_channel_arguments 2019-04-08 11:59:28 -07:00
Karthik Ravi Shankar 9b42ab79e0 Make build fixes for bazel build :all 2019-04-04 16:40:16 -07:00
Karthik Ravi Shankar f01997b377 Merge branch 'master' into grpc_namespace_channel_arguments 2019-04-04 16:31:42 -07:00
Karthik Ravi Shankar c50dd23ea7 Merge branch 'master' into grpc_namespace_server 2019-04-04 15:56:09 -07:00
Karthik Ravi Shankar dd39f78e3f Merge branch 'master' into revert-18502-revert-18242-grpc_namespace_serverbuilder 2019-04-04 15:45:42 -07:00
Karthik Ravi Shankar af283b3183
Merge pull request #18452 from grpc/grpc_namespace_server_credentials
Fold server credentials from grpc to grpc_impl namespace
2019-04-04 13:47:26 -07:00
Karthik Ravi Shankar 5b1bf21090
Merge pull request #18434 from grpc/grpc_namespace_generic_stub
Fold GenericStub from grpc_impl to grpc
2019-04-04 13:46:44 -07:00
Karthik Ravi Shankar 79a0be902e Merge branch 'master' into revert-18502-revert-18242-grpc_namespace_serverbuilder 2019-04-04 10:13:18 -07:00
Karthik Ravi Shankar 0cedc27cb6 Merge branch 'master' into grpc_namespace_server_credentials 2019-04-04 10:04:30 -07:00
Karthik Ravi Shankar 23a77f7c0e Merge branch 'master' into grpc_namespace_server 2019-04-04 09:56:51 -07:00
Karthik Ravi Shankar 9b312aa25b
Merge pull request #18600 from karthikravis/grpc_namespace_proto_server
Move ProtoServerReflectionPlugin from grpc to grpc_impl namespace
2019-04-03 15:33:04 -07:00
Karthik Ravi Shankar a70b7d8d83
Merge pull request #18455 from grpc/grpc_namespace_error_details
Fold ErrorDetails into grpc_impl from grpc
2019-04-03 14:24:13 -07:00
Karthik Ravi Shankar e642e175e7
Merge pull request #18374 from grpc/grpc_namespace_channel_create
Moving create_channel from grpc to grpc_impl
2019-04-03 13:56:19 -07:00
Karthik Ravi Shankar 99b3016336
Merge pull request #18419 from grpc/grpc_namespace_server_load_reporting
Move LoadReportingServiceServerBuilderOption from grpc to grpc_impl
2019-04-03 13:48:37 -07:00
Karthik Ravi Shankar 87d2d68c4f Merge branch 'master' into grpc_namespace_server_credentials 2019-04-03 12:53:09 -07:00
Karthik Ravi Shankar 8a2807c2a6 Merge branch 'master' into grpc_namespace_server 2019-04-03 12:46:41 -07:00
Karthik Ravi Shankar e5ea95db88 Merge branch 'master' into revert-18502-revert-18242-grpc_namespace_serverbuilder 2019-04-03 12:25:09 -07:00
Yash Tibrewal cb6a2968fe Make Interceptors work for lame channels 2019-04-03 11:55:04 -07:00
Yash Tibrewal 987b62e70c
Merge pull request #18605 from haon4/master2
Explicitly set case_insensitive_enum_parsing = true when parsing JSON
2019-04-03 11:31:05 -07:00
Hao Nguyen e69406008f Explicitly set case_insensitive_enum_parsing = true when parsing JSON 2019-04-01 15:48:23 -07:00
Karthik Ravi Shankar f0d82d57e2 Merge branch 'master' into grpc_namespace_server_credentials 2019-04-01 13:59:12 -07:00
Karthik Ravi Shankar 3d6f118a5f Merge branch 'master' into grpc_namespace_generic_stub 2019-04-01 13:52:27 -07:00
Karthik Ravi Shankar 150935aeef Merge branch 'master' into grpc_namespace_server_load_reporting 2019-04-01 13:50:30 -07:00
Karthik Ravi Shankar ccf8c8c16c
Merge branch 'master' into grpc_namespace_proto_server 2019-04-01 13:47:31 -07:00
Karthik Ravi Shankar 8e092b45fa Move ProtoServerReflectionPlugin from grpc to grpc_impl namespace 2019-04-01 13:32:40 -07:00
Karthik Ravi Shankar 87c98ad3fb
Merge pull request #18379 from grpc/grpc_namespace_server_initializer
Move ServerInitializer to grpc_impl namespace from grpc
2019-04-01 12:48:28 -07:00
Karthik Ravi Shankar a9a0739dc8
Merge pull request #18371 from grpc/grpc_namespace_healthserviceinterface
Move ::grpc::HealthCheckServiceInterface to ::grpc_impl namespace
2019-04-01 12:28:13 -07:00
Karthik Ravi Shankar 3d5a9758fa
Merge pull request #18345 from grpc/revert-18343-revert-18220-grpc_namespace
Revert "Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota""
2019-04-01 12:27:51 -07:00
Lidi Zheng 0231bf3b01 Regenerate projects 2019-03-29 16:24:50 -07:00
Karthik Ravi Shankar a10d4825c1
Merge pull request #18372 from grpc/grpc_namespace_server_posix
Move server_posix from grpc to grpc_impl namespace
2019-03-29 10:18:56 -07:00
Karthik Ravi Shankar 3354f2c5a7
Merge pull request #18373 from grpc/grpc_namespace_channel_create_posix
Move create_channel_posix from grpc to grpc_impl namespace
2019-03-29 10:17:59 -07:00
Karthik Ravi Shankar dcc199048f
Merge pull request #18396 from grpc/revert-18392-revert-18223-grpc_namespace_opencensus
Revert "Revert "Fold opencensus into grpc_impl namespace""
2019-03-29 10:09:01 -07:00
Karthik Ravi Shankar 4fe664e065
Merge pull request #18375 from grpc/grpc_namespace_channelz_service_plugin
Move channelz_service_plugin from grpc to grpc_impl namespace
2019-03-29 10:07:53 -07:00
Karthik Ravi Shankar b2d9d7c8be Merge branch 'master' into grpc_namespace_channel_create 2019-03-29 08:46:27 -07:00
Karthik Ravi Shankar 29c0aacfc0 Merge branch 'master' into revert-18502-revert-18242-grpc_namespace_serverbuilder 2019-03-29 08:24:54 -07:00
Vijay Pai fb5c385208 Remove unneeded header files 2019-03-27 16:46:01 -07:00
Karthik Ravi Shankar fc50caf725 Fix clang format issues 2019-03-27 15:03:20 -07:00
Karthik Ravi Shankar b8713cf08e Merge branch 'master' into grpc_namespace_server_load_reporting 2019-03-27 15:01:47 -07:00
Karthik Ravi Shankar 40440b9f9c Merge branch 'master' into grpc_namespace_generic_stub 2019-03-27 14:42:02 -07:00
Karthik Ravi Shankar dc3a715be4 Fix clang format code errors. 2019-03-27 14:33:58 -07:00
Karthik Ravi Shankar c399349dad Merge branch 'master' into grpc_namespace_server 2019-03-27 14:32:10 -07:00
Karthik Ravi Shankar 858e0dffe9 Merge branch 'master' into grpc_namespace_error_details 2019-03-27 14:26:16 -07:00
Karthik Ravi Shankar 8499415edd Merge branch 'master' into grpc_namespace_channel_arguments 2019-03-27 14:21:55 -07:00
Karthik Ravi Shankar 2f2ed7228b Fix clang_format_code.sh errors 2019-03-27 14:20:14 -07:00
Karthik Ravi Shankar 7068560b2b Merge branch 'master' into grpc_namespace_server_credentials 2019-03-27 14:18:42 -07:00
Karthik Ravi Shankar 20f3e29d41 Merge branch 'master' into grpc_namespace_channel_create 2019-03-27 12:33:02 -07:00
Karthik Ravi Shankar 577ddfb1a1 Move ServerInitializer to grpc_impl namespace from grpc 2019-03-27 12:28:35 -07:00
Karthik Ravi Shankar 996da58667
Revert "Revert "Moving ::grpc::ServerBuilder to ::grpc_impl::ServerBuilder"" 2019-03-26 08:04:32 -07:00
Karthik Ravi Shankar e4bb7cb8bb
Revert "Moving ::grpc::ServerBuilder to ::grpc_impl::ServerBuilder" 2019-03-25 19:57:17 -07:00
Karthik Ravi Shankar 88fc2a6a52
Merge pull request #18242 from grpc/grpc_namespace_serverbuilder
Moving ::grpc::ServerBuilder to ::grpc_impl::ServerBuilder
2019-03-25 15:59:01 -07:00
Karthik Ravi Shankar b2b1e57337 Fix errors from test scripts. 2019-03-25 15:55:06 -07:00
Karthik Ravi Shankar 4b0175f2c8 Fix errors from clang_format_code.sh 2019-03-25 15:53:22 -07:00
Karthik Ravi Shankar 130962490b Make changes to fix test failures 2019-03-25 15:52:42 -07:00
Karthik Ravi Shankar 8dbaa13f52 Fix more grpc namespace issues 2019-03-25 15:50:35 -07:00
Karthik Ravi Shankar b25f6da3f0 Make changes to fix test failures 2019-03-25 15:50:35 -07:00
Karthik Ravi Shankar e27ddbc87e Move ::grpc::HealthCheckServiceInterface to ::grpc_impl namespace 2019-03-25 15:50:35 -07:00
Karthik Ravi Shankar ecfc107f32 Make more changes to remove grpc qualifier from tests 2019-03-21 18:40:00 -07:00
Karthik Ravi Shankar 4260fe1147 More fixes 2019-03-21 17:51:28 -07:00
Soheil Hassas Yeganeh ad1b3e5094 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()

This commit reaplies 509e77a5a3
2019-03-21 06:03:45 -04:00
Vijay Pai 50576179f8
Merge pull request #17978 from yashykt/interceptorcleanup1
Global Interceptor Registration allowed only once
2019-03-20 19:13:55 -07:00
Karthik Ravi Shankar 04af168cf8 Move Server into grpc_impl from grpc 2019-03-20 13:05:36 -07:00
Karthik Ravi Shankar 338b4cb5c9 Fold ErrorDetails into grpc_impl from grpc 2019-03-20 11:17:46 -07:00
Karthik Ravi Shankar 6da0ca4421 Bring ChannelArguments to grpc_impl from grpc 2019-03-20 10:38:03 -07:00
Karthik Ravi Shankar 54171e276f Fold server credentials from grpc to grpc_impl namespace 2019-03-20 10:00:34 -07:00
Karthik Ravi Shankar 526bf39f89 Fold GenericStub from grpc_impl to grpc 2019-03-19 12:34:30 -07:00
Karthik Ravi Shankar f58aed2d06 Make changes to server_posix to expose method outside 2019-03-19 10:50:53 -07:00
Karthik Ravi Shankar 1d357572cf Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota"
This reverts commit d8d8bec7c8.
2019-03-19 10:43:02 -07:00
Karthik Ravi Shankar e9593285a8 Move LoadReportingServiceServerBuilderOption from grpc to grpc_impl 2019-03-18 13:20:42 -07:00
Vijay Pai 04a6b8467c Support callback on cancellation of server-side unary RPCs 2019-03-18 12:00:57 -07:00
Karthik Ravi Shankar 322e720fe6 Merge branch 'master' into grpc_namespace_serverbuilder 2019-03-18 10:39:38 -07:00
Karthik Ravi Shankar 2772f519e6 Fix errors from presubmit scripts. 2019-03-15 14:28:32 -07:00
Karthik Ravi Shankar 4a0c3b848f Fix broken tests 2019-03-15 13:16:46 -07:00
Karthik Ravi Shankar f66b654795
Revert "Revert "Fold opencensus into grpc_impl namespace"" 2019-03-15 11:30:23 -07:00
Karthik Ravi Shankar 2bf934f97d
Revert "Fold opencensus into grpc_impl namespace" 2019-03-15 10:20:06 -07:00
Karthik Ravi Shankar 90edf47fe9 Move server_posix from grpc to grpc_impl namespace 2019-03-14 14:26:25 -07:00
Karthik Ravi Shankar d8d8bec7c8 Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota
This change moves ResourceQuota class fron grpc namespace to grpc_impl
namespace.

Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
2019-03-14 12:24:25 -07:00
Vijay Pai 85f8e0f4b0
Merge pull request #18289 from vjpai/unimplemented_rpc
C++ callback API: properly handle and test unimplemented RPC method
2019-03-13 12:47:36 -07:00
Karthik Ravi Shankar 82c6e012d8
Revert "Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota"" 2019-03-12 14:01:05 -07:00
Karthik Ravi Shankar b3889585a1
Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota" 2019-03-12 12:25:38 -07:00
Karthik Ravi Shankar cc632f8121
Merge pull request #18220 from grpc/grpc_namespace
Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota
2019-03-12 11:20:27 -07:00
Karthik Ravi Shankar 276c4dc593
Merge pull request #18223 from grpc/grpc_namespace_opencensus
Fold opencensus into grpc_impl namespace
2019-03-08 15:45:03 -08:00
Soheil Hassas Yeganeh ac9c67d851
Merge pull request #18229 from soheilhy/server-ctx-lock
Use grpc_core::RefCount for ServerContext.
2019-03-08 16:03:16 -05:00
Vijay Pai b7f14fdab8 Properly implement unimplemented RPCs at callback-only server 2019-03-06 23:43:34 -08:00
Vijay Pai 5030177c5c Add comment to address reviewer feedback 2019-03-06 18:17:11 -08:00
Karthik Ravi Shankar 5e5e337b03 fix from clang format code
Add fixes from clang_format_code.sh.
2019-03-06 10:21:37 -08:00
Karthik Ravi Shankar f7dd48b2b6 Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota
This change moves ResourceQuota class fron grpc namespace to grpc_impl
namespace.
2019-03-06 10:12:23 -08:00
Karthik Ravi Shankar 3b7a47cde6 Moving ::grpc::ServerBuilder to ::grpc_impl::ServerBuilder
This change moves ServerBuilder class from grpc namespace to grpc_impl
namespace.
2019-03-04 17:01:14 -08:00
Karthik Ravi Shankar b606cad6cc Fold opencensus into grpc_impl namespace
Moving opencensus into grpc_impl namespace..
2019-03-04 15:47:37 -08:00
Vijay Pai 05d8ddfc6e Support callback-based generic service 2019-03-04 13:13:12 -08:00
Soheil Hassas Yeganeh 509e77a5a3 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()
2019-03-04 14:17:46 -05:00
Soheil Hassas Yeganeh 059e104475 Use grpc_core::RefCount for ServerContext. 2019-03-02 23:25:18 -05:00
Nicolas Noble 91ad888497
Revert "Revert "Folding the Channel class into the grpc_impl namespace."" 2019-02-27 16:53:23 -08:00
Vijay Pai 2eb25c871e Avoid build errors 2019-02-26 03:08:06 -08:00
Vijay Pai 8feb16171a Add an expectation and fix a ServerContext bug 2019-02-25 00:48:11 -08:00
Vijay Pai bf2b0e5220
Merge pull request #18117 from vjpai/use_result
Avoid unused result warning
2019-02-20 23:21:13 -08:00
Vijay Pai 301ed88a43 Avoid unused result warning 2019-02-20 21:39:02 -08:00
Yuwei Huang 3cbf4f50ea Remove extra semicolons after function definitions
We are planning to enable -Wextra-semi flag in our project but some
header files in gRPC have extra semicolons that violates the check and
blocks us from enabling the flag.

This change removes unnecessary semicolons in the code. Note that having
semicolon after the GRPC_ABSTRACT macro technically also violates the
check, but it's fine for us since they are not used in public headers,
and it will be confusing to have lines ending only with GRPC_ABSTRACT,
so I keep them as-is.
2019-02-20 17:58:30 -08:00
Nguyen Hai Truong 9cf00ed80b Reformat some link and fix typos
Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
2019-02-20 23:19:33 +07:00
Nicolas Noble 2ad245cb0c
Revert "Folding the Channel class into the grpc_impl namespace." 2019-02-15 09:52:15 -08:00
Nicolas "Pixel" Noble 5847c3a87a Reformat. 2019-02-14 20:05:59 +01:00
Nicolas "Pixel" Noble 12b0db3e57 Folding CompletionQueue and ServerCompletionQueue. 2019-02-14 20:01:14 +01:00
Nicolas "Pixel" Noble de332cfcee Merge branch 'master' of https://github.com/grpc/grpc into channel 2019-02-13 22:11:47 +01:00
Yash Tibrewal 73353ad281 Merge branch 'master' into interceptorcleanup1 2019-02-13 12:47:47 -08:00
hcaseyal eecd983302
Merge pull request #18025 from soheilhy/callback-sync-cq
Reorder code to set num_frequently_polled_cqs correctly.
2019-02-13 12:39:11 -08:00
Srini Polavarapu f7f6861720
Merge pull request #18033 from srini100/master
Bump master to v1.20.x and pick "godric" for that release
2019-02-13 12:17:12 -08:00
Nicolas "Pixel" Noble 0c19be2fc8 Fixing cronet 2019-02-13 20:12:13 +01:00
Nicolas "Pixel" Noble 39d3b7335c Missed a spot. 2019-02-13 19:17:18 +01:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
田欧 06c8294fb5
Merge branch 'master' into use_cpp11_for 2019-02-13 16:36:43 +08:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
Soheil Hassas Yeganeh 37c1f0bd54 Reorder code to set num_frequently_polled_cqs correctly.
When there num_frequently_polled_cqs is non-zero (aka hybrid server),
we create non-polling CQs for the sync methods. But, since we
increase num_frequently_polled_cqs for callback methods
after creating the sync CQs, the sync CQs would not detect
a hyprid server, and will create a polling CQ.

This commit reorders the logic, so that we increment
num_frequently_polled_cqs upon detecting a callback service.

This lowers the context switches by double digit percentage
when using callback API.
2019-02-12 23:04:41 -05:00
Nicolas "Pixel" Noble 63db582516 Merge branch 'master' of https://github.com/grpc/grpc into channel 2019-02-13 00:19:23 +01:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Yash Tibrewal cddb5519f2 Add a test only method to reset global interceptor 2019-02-08 15:57:29 -08:00
Yash Tibrewal c71b2f4fb7 Global Interceptor Registration allowed only once 2019-02-07 19:36:51 -08:00
Yash Tibrewal e5eb3f8019
Merge pull request #17934 from yashykt/compressionlevel
Default compression level quick fix
2019-02-06 11:46:19 -08:00
Yash Tibrewal 84a537b1d1 Default compression level quick fix 2019-02-05 14:22:47 -08:00
Vijay Pai 45c684f894 Allow an alarm to be set again after firing 2019-02-05 14:07:40 -08:00
Vijay Pai 92d37b1273 SOFT_MAXIMUM is supposed to be per-server, not per-method 2019-02-02 09:14:05 -08:00
Vijay Pai 8521c0394b Address optional reviewer comments 2019-02-01 15:21:13 -08:00
Vijay Pai e56c832c0d Replace list of outstanding callback requests with count only 2019-02-01 13:44:50 -08:00
Yash Tibrewal 3a2cfe50ec Rever copyright changes 2019-01-28 16:18:49 -08:00
Yash Tibrewal 786598a6ff Merge branch 'master' into interceptorcqavalanching 2019-01-28 11:54:39 -08:00
Juanli Shen 6c543919ed
Merge pull request #17707 from kakshay21/akshay-fix-warning
Fix warning
2019-01-26 21:06:11 -08:00
Kumar Akshay 564be999de Fix warning
Fix clang format
2019-01-26 18:39:23 +05:30
Vijay Pai 7a164229db Address reviewer comments 2019-01-25 10:25:08 -08:00
Nicolas "Pixel" Noble cabbd35014 Reformat. 2019-01-24 23:42:12 +01:00
Yash Tibrewal 4dcb14ec9e Fix codegen_test_minimal 2019-01-24 13:05:05 -08:00
Nicolas "Pixel" Noble dffbe4a1eb Merge branch 'master' of https://github.com/grpc/grpc into channel 2019-01-23 21:40:25 +01:00
Nicolas "Pixel" Noble 2fd079ff7c Channel folding. 2019-01-23 21:40:07 +01:00
Vijay Pai fab05d336c Dynamic callback requesting, graceful server shutdown, and separate ExecCtx for callbacks 2019-01-23 11:21:50 -08:00
Lei Huang 3bd12ee2a8 grpc: init compression_algorithm_ in ClientContext ctor
`compression_algorithm_` could be a random value because not
initialized in ctor.
2019-01-17 16:22:30 -07:00
Juanli Shen 778be11865
Merge pull request #17629 from AspirinSJL/clean_sc_args
Remove filters from subchannel args
2019-01-07 20:11:40 -08:00
Yash Tibrewal 6e5eb4e5a3 Merge branch 'master' into failhijackedrecv 2019-01-04 14:03:37 -08:00
Juanli Shen 03431b4f69 Remove filters from subchannel args 2019-01-03 16:18:01 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
Yash Tibrewal 24e37e249a Merge branch 'master' into failhijackedrecv 2018-12-26 15:10:41 -08:00
yang-g d6dd6f25f4 Correctly reference the internal string for socket mutator arg 2018-12-20 15:37:30 -08:00
easy 8279777167 Destruct CensusContext to avoid leaking memory.
Otherwise, the placement-new leaks context -> span_ -> impl_ which is
a std::shared_ptr.
2018-12-19 12:37:39 +11:00
Nicolas Noble 5748af6e18
Merge pull request #17468 from nicolasnoble/grpc_namespace
Moving ::grpc::Alarm to ::grpc_impl::Alarm.
2018-12-13 15:22:05 -08:00
Soheil Hassas Yeganeh 9decf48632 Move security credentials, connectors, and auth context to C++
This is to use `grpc_core::RefCount` to improve performnace.
This commit also replaces explicit C vtables, with C++ vtable
with its own compile time assertions and performance benefits.
It also makes use of `RefCountedPtr` wherever possible.
2018-12-13 10:38:12 -05:00
Nicolas "Pixel" Noble d550af373c Moving ::grpc::Alarm to ::grpc_impl::Alarm. 2018-12-12 16:48:32 +01:00
ncteisen c7f7db65e0 Add test and fix bug 2018-12-11 11:28:12 -08:00