Commit Graph

477 Commits

Author SHA1 Message Date
Alexander Polcyn 1197454f5a Regenerate projects 2020-01-17 15:36:25 -08:00
Mark D. Roth 5b18402914 grpclb stabilization 2020-01-10 09:13:10 -08:00
Esun Kim 5207eba9ff Add abseil 2020-01-03 19:29:55 -08:00
Esun Kim 12c9f2e9d6 Make gRPC podspec template more robust 2019-12-15 15:51:41 -08:00
Guantao Liu b9c06e043f
Merge pull request #21216 from guantaol/libuv_em_basic
Bare bones of the libuv EventManager.
2019-12-10 17:07:57 -08:00
Yihua Zhang a6dbc7adb5 rename spiffe to tls 2019-12-05 16:03:37 -08:00
Guantao Liu ee4b311605 Merge remote-tracking branch 'upstream/master' into libuv_em_basic 2019-12-04 17:41:35 -08:00
Guantao Liu 6b4b891eb2 Merge remote-tracking branch 'upstream/master' into libuv_em_basic 2019-12-04 14:01:14 -08:00
Mark D. Roth 68df397aa2 Remove vtables from JSON library 2019-12-04 13:03:55 -08:00
Richard Belleville 6feae07504 Regenerate projects 2019-12-03 15:08:50 -08:00
Guantao Liu 19d1776c0d Rebase the workspace to fix the submodule discrepancy. 2019-12-02 16:57:17 -08:00
Muxi Yan b7a467d463 Remove build references to grpc_shadow_boringssl.h 2019-11-22 10:46:11 -08:00
Yash Tibrewal 3b1d176e9d LogicalThread 2019-11-22 10:38:35 -08:00
Vijay Pai be6979202b Revamp server-side C++ callback API, message allocator, and mocking 2019-11-20 16:56:18 -08:00
Muxi Yan f14ce59fc8 Fix typo in gRPC C++ podspec 2019-11-13 08:19:41 -08:00
Muxi Yan 4d073daca3 podspec nit fix 2019-11-12 12:54:11 -08:00
Muxi Yan 09471e0b38 build_projects 2019-11-12 10:44:27 -08:00
Muxi Yan 574b846103 Fix Cronet issue in gRPC-C++.podspec 2019-11-11 17:24:58 -08:00
Muxi Yan 0c1c6c336e build_projects 2019-11-08 15:53:51 -08:00
Muxi Yan 46b2e6dc56 Make gRPC-C++ podspec follow gRPC versioning 2019-11-07 14:27:40 -08:00
Esun Kim 0bf9799107 Replaced grpc_core::Set with std::set 2019-11-06 12:08:25 -08:00
Esun Kim aaf48c66fc Change upb from filegroup to library 2019-11-05 14:20:56 -08:00
Yash Tibrewal 07ef24344c Regenerate projects 2019-10-24 11:54:20 -07:00
Esun Kim f8df8af8d3 Updated podspec to have a sorted file list 2019-10-22 11:56:49 -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
Mark D. Roth 076ee0bc85 Wrapper for std::set<> that overrides the allocator. 2019-10-03 07:47:34 -07:00
Esun Kim 2274ca22f4 Use std::pair 2019-10-02 09:00:12 -07:00
Esun Kim 1743519aa9 Activate C++ stdlib 2019-10-01 16:36:56 -07:00
Matthew Stevenson 726f0b68a1 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-09-18 08:52:24 -07:00
Mark D. Roth d1bca6ff92
Merge pull request #20119 from markdroth/c++_mpscq
Convert mpscq API from C to C++.
2019-09-17 15:24:13 -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
Mark D. Roth 51d18ecc63 Convert mpscq API from C to C++. 2019-09-05 10:32:36 -07:00
Karthik Ravi Shankar de2006d3e1 Merge branch 'master' into move-method-handler 2019-08-28 14:01:58 -07:00
Matthew Stevenson 4b7eb25607 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-26 08:45:31 -07:00
Matthew Stevenson c2fd3844dc Implemented Yihua's comments 2019-08-23 16:20:19 -07:00
Esun Kim a031f0ffd6 Remove all nanopb defines 2019-08-23 08:41:35 -07:00
Matthew Stevenson e87fc58b78 Autogenerated files 2019-08-22 09:58:54 -07:00
Karthik Ravi Shankar 28b0671235 Make MethodHandler and related interfaces generic 2019-08-21 16:12:48 -07:00
Matthew Stevenson e8b28dd27b Autogenerated files 2019-08-21 15:28:15 -07:00
Matthew Stevenson d7e2ce2c2f Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-21 15:11:40 -07:00
Esun Kim 7ec6e8a4de Remove nanopb from gRPC 2019-08-21 13:31:21 -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 bcc458fb37 Merge remote-tracking branch 'upstream/master' into spiffe1 2019-08-20 11:55:52 -07:00
rmstar eae902594b
Merge pull request #19855 from Tony1023/bazel_objc_tests
Added Bazel BUILD for ObjC Tests and Examples
2019-08-15 16:11:06 -07:00
Esun Kim be4e684a82 Migrated tsi/alts from nanopb to upb 2019-08-08 16:39:05 -07:00
Juanli Shen 79f191114e Use EDS in xds LB policy 2019-08-07 22:43:45 -07:00
Tony Lu 42737d976a Fixed prepare command to let bazel work after replacement 2019-08-07 19:37:19 -07:00
Esun Kim 807cd08f4a Fix upb build typo 2019-08-07 16:03:08 -07:00
Esun Kim c6b0bd08c7 Updated grpclb to use upb 2019-08-07 13:25:49 -07:00
Esun Kim 6ddfb384c1 Added google/protobuf/descriptor.upb.* to google_api_upb 2019-08-07 12:08:06 -07:00
Esun Kim f7454a9876 Modified health_check to use upb proto instead of nanopb 2019-08-07 09:16:08 -07:00
Esun Kim 8dfa3c2255 Remove upb targets from BUILD 2019-08-06 17:40:02 -07:00
Esun Kim f88bd06ee5 Go UPB! 2019-08-06 15:27:14 -07:00
Yash Tibrewal e6756a58ed
Merge pull request #19316 from yashykt/delegating_channel
Add Delegating Channel
2019-08-02 12:08:10 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
Yash Tibrewal 3653439ba6 Merge master and move to experimental 2019-08-01 16:15:31 -07:00
Matthew Stevenson 4cd2fdd7df First commit: autogenerated files 2019-07-29 10:43:38 -07:00
Esun Kim e6b07f9e58 Added cronet to gRPC-C++.podspec 2019-07-24 15:47:32 -07:00
Yunjia Wang 15d2f0390b Merge remote-tracking branch 'upstream/master' into thread_pool 2019-07-09 10:00:40 -07: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
yunjiaw26 aec511e0e0
Merge pull request #19358 from yunjiaw26/mpmcqueue
MPMCQueue
2019-07-02 18:27:06 -07:00
Moiz Haidry bf994e48d9 Move grpc async, callback and sync implementation to grpc_impl namespace 2019-07-01 14:05:54 -07:00
Yunjia Wang 410451c126 Add threadpool implementation 2019-07-01 14:02:58 -07:00
Yunjia Wang 0141b18d66 Merge remote-tracking branch 'upstream/master' into threadpool 2019-07-01 13:38:18 -07:00
Soheil Hassas Yeganeh dbf88dd66f Revert "Revert "Introduce string_view and use it for gpr_split_host_port.""
This reverts commit 80c177d4c4.
2019-06-27 20:56:15 -04:00
Karthik Ravi Shankar bddcb6c906 Don't move ServerContext to impl 2019-06-26 14:28:34 -07:00
Yunjia Wang 5b6c9473cd Merge remote-tracking branch 'upstream/master' into mpmcqueue 2019-06-26 13:59:28 -07:00
Karthik Ravi Shankar 8b91dc5fd2 Move more of usage to grpc_impl
1) Create server_context_impl and completion_queue_impl headers.
2) Move more of usage of ClientContext, ServerContext to grpc_impl
2019-06-22 17:17:29 -07:00
Soheil Hassas Yeganeh ef0f9bf7ec Introduce string_view and use it for gpr_split_host_port. 2019-06-20 23:19:34 -04:00
Yunjia Wang fb05f0bf9c Merge remote-tracking branch 'upstream/master' into mpmcqueue 2019-06-19 16:25:16 -07:00
Yunjia Wang ad22f9d7bf Add delete operator overload 2019-06-19 16:24:59 -07:00
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Yunjia Wang 70c8211c85 Add config files 2019-06-17 16:57:30 -07:00
Moiz Haidry 186875337c Sync with master 2019-06-11 16:16:27 -07:00
Yash Tibrewal 94e7edad99 Add Delegating Channel 2019-06-11 15:07:12 -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
Mark D. Roth 28ccd61cf5 Use SubchannelInterface to hide implementation from LB policy API. 2019-05-29 12:21:15 -07: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
Muxi Yan 61e77cb764
Merge pull request #19082 from muxi/cpp-pod-certificate
Rename root certificate bundle in gRPC-C++ pod
2019-05-21 10:34:52 -07:00
Esun Kim 90fbdc92f5 Roll-forward "Config migration"
This reverts commit 236ae12bb1.
2019-05-20 15:47:24 -07:00
Muxi Yan c681ff8e4b Rename root certificate bundle in gRPC-C++ pod 2019-05-20 14:51:16 -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
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
murgatroid99 70e850a023 Merge branch 'master' into cares_windows_platform_detection 2019-05-14 17:41:25 -07:00
murgatroid99 7743130f64 Consolidate conditional localhost resolution into existing file 2019-05-14 15:26:56 -07:00
Alexander Polcyn 236ae12bb1 Revert "Config migration"
This reverts commit 87905ae5ea.
2019-05-14 14:36:33 -07:00
yang-g de57783beb Merge with head and resolve conflict 2019-05-13 08:56:02 -07:00
murgatroid99 e16a0d4599 Fix typo 2019-05-10 15:53:45 -07:00
Arjun Roy 50e16f6d3a
Merge pull request #18910 from arjunroy/slice_eq_static
Added slice equality when static fastpath.
2019-05-10 13:45:57 -07:00
Arjun Roy f65208af02 Added slice equality when static fastpath. 2019-05-10 11:35:27 -07:00
murgatroid99 4b4006f833 libuv cares: scope manual localhost resolution to only Windows 2019-05-10 11:15:12 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Karthik Ravi Shankar 43986f4224
Merge pull request #18731 from karthikravis/grpc_namespace_completion_queue
Fold CompletionQueue and ServerCompletionQueue into grpc_impl
2019-05-09 16:43:37 -07:00
Esun Kim 51360d8513
Merge pull request #18931 from veblush/config-migration
Global config variables migration
2019-05-09 15:12:08 -07:00
Karthik Ravi Shankar af32f6ce2e Merge branch 'master' into grpc_namespace_completion_queue 2019-05-09 14:12:52 -07:00
Karthik Ravi Shankar 476f7cd81f
Merge pull request #18730 from karthikravis/grpc_namespace_channel_new
Fold Channel into grpc_impl from grpc namespace
2019-05-09 14:09:21 -07:00
Esun Kim 87905ae5ea Config migration 2019-05-09 12:29:38 -07:00
yang-g 218e290074 Merge with head and resolve conflict 2019-05-07 22:46:45 -07:00
Michael Lumish 95a4a0ef76
Merge pull request #18809 from murgatroid99/cares_libuv
Add cares glue for libuv event loop
2019-05-02 13:43:52 -07:00
Esun Kim ccf4734907
Merge pull request #18799 from veblush/config
New config system & migration sample
2019-05-01 09:01:35 -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 9eec789a4d Merge branch 'grpc_namespace_channel_new' into grpc_namespace_completion_queue 2019-04-30 15:51:49 -07:00
Esun Kim 1518ecbd76 Added new configuration system to core/grp.
More generic configuration system is introduced in order to i) unify the
way how modules access the configurations instead of using low-level
get/setenv functions and ii) enable the customization for where configuration
is stored. This could be extended to support flag, file, etc.

Default configuration system uses environment variables as before so
basically this is expected to work just as it did. This behavior can
change by redefining GPR_GLOBAL_CONFIG_DEFINE_*type* macros.

* Migrated configuration

GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS
GRPC_EXPERIMENTAL_DISABLE_FLOW_CONTROL
GRPC_ABORT_ON_LEAKS
GRPC_NOT_USE_SYSTEM_SSL_ROOTS
2019-04-30 15:49:24 -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 5a132b8245 Merge branch 'master' into grpc_namespace_credentials 2019-04-30 10:18:09 -07:00
Karthik Ravi Shankar bc09c70799
Merge pull request #18454 from grpc/grpc_namespace_channel_arguments
Bring ChannelArguments to grpc_impl from grpc
2019-04-30 10:16:45 -07:00
Muxi Yan efbeb750ec
Merge pull request #18814 from muxi/fix-cfstream-build-yaml
Build system fix for default CFStream
2019-04-26 08:14:30 -07:00
Karthik Ravi Shankar 3377e49bc7 Fix build errors 2019-04-25 11:40:56 -07:00
Arjun Roy 8ce42f67b2 Shrink arena size by 40 bytes and add additional
alignment options (for cache-alignment).

We shrink by:
1) Removing an unnecessary zone pointer.
2) Replacing gpr_mu (40 bytes when using pthread_mutex_t) with
std::atomic_flag.

We also header-inline the fastpath alloc (ie. when not doing a zone
alloc) and move the malloc() for a zone alloc outside of the mutex
critical zone, which allows us to replace the mutex with a spinlock.

We also cache-align created arenas.
2019-04-24 16:39:03 -07:00
Karthik Ravi Shankar a1493cfa62 Add missing files for build 2019-04-24 08:26:46 -07:00
Karthik Ravi Shankar 81ba5a7b9b Add missing files for build 2019-04-24 08:22:56 -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
murgatroid99 dc1bcf8762 Consolidate helper function from windows and libuv 2019-04-22 17:31:55 -07:00
Muxi Yan 9e593f721f build system fix for default CFStream 2019-04-19 14:14:48 -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
Mark D. Roth 62d9be1533
Merge pull request #18631 from markdroth/pare_down_channel_args_api
Move functions for individual args out of channel_args.{h,cc}.
2019-04-16 07:11:33 -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 973fa6950e Fold Channel into grpc_impl from grpc namespace 2019-04-11 12:04:23 -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
Karthik Ravi Shankar 891b6cf7ae
Revert "Folding CompletionQueue and ServerCompletionQueue." 2019-04-10 10:22:59 -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 e8c0b2433a Make script fixes 2019-04-05 10:20:13 -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