Commit Graph

1171 Commits

Author SHA1 Message Date
Craig Tiller 13c0940f66 Merge branch 'idempotent_endpoint_shutdown' into handshake_timeout 2016-06-15 09:41:33 -07:00
Jan Tattermusch 136307756c Merge pull request #6438 from y-zeng/reflection_separate_lib
Proto server reflection
2016-06-13 14:16:06 -07:00
Martin Dyring-Andersen 0de6cea207 Fix scope problem when GPR_SUPPORT_CHANNELS_FROM_FD is not defined 2016-06-10 20:59:44 -04:00
Vijay Pai 15855f3e7f Switch server builder plugin API to something that will work with gcc4.4 2016-06-10 12:25:32 -07:00
Vijay Pai eac07c3cc8 WIP 2016-06-10 01:52:20 -07:00
Craig Tiller 05bec5c0ab Fix uninitialized variable 2016-06-09 23:01:24 -07:00
Vijay Pai b645a2d3ce Remove another range-based for
Do not make explicit comparisons against nullptr; only use
implicit typecast to bool
2016-06-09 18:39:06 -07:00
Jan Tattermusch 1bc2976a0f Merge pull request #6481 from dgquintas/compression_md_level_bis
Allow servers to select compression level via initial MD & overall compression cleanup
2016-06-08 19:17:20 -07:00
Jan Tattermusch b81f172206 Merge pull request #6610 from xyzzyz/external_fd_fresh
Add support for communication using existing FD (for client and server)
2016-06-08 19:16:40 -07:00
David Garcia Quintas dd385b6a19 Merge branch 'master' of github.com:grpc/grpc into core_codegen_be_public 2016-06-07 18:51:36 -07:00
Adam Michalik 4ad746e4e0 clang-format, fix headers, windows fixes 2016-06-07 15:09:19 -07:00
Adam Michalik b97e2d145e Add C++ support for using external FD 2016-06-07 15:09:19 -07:00
Yuchen Zeng d23710787b Merge remote-tracking branch 'upstream/master' into reflection_separate_lib 2016-06-07 15:00:52 -07:00
Yuchen Zeng 7ae31a8898 Add more comments, fix format issues 2016-06-06 14:35:51 -07:00
Yuchen Zeng 0601df3a04 Move reflection src/hdr to src/cpp/ext include/grpc++/ext 2016-06-06 13:08:06 -07:00
David Garcia Quintas 55c08f81cf Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-06-03 14:18:01 -07:00
Craig Tiller fa96d86a99 Fix comments 2016-05-21 12:39:56 -07:00
Craig Tiller 8a7fe1a0ef Fix crash 2016-05-20 11:17:20 -07:00
Craig Tiller e004958fd6 Fix formatting, mem leak, stall 2016-05-20 10:31:09 -07:00
Craig Tiller 20431a8618 Fix merge 2016-05-20 10:02:07 -07:00
Craig Tiller 0e314bccff Merge branch 'server_channel_affinity' of github.com:sreecha/grpc into test_affine 2016-05-20 10:00:04 -07:00
Craig Tiller aae6c2cb96 Fix server plugin test 2016-05-20 08:58:30 -07:00
Craig Tiller 3eee9b4ace Mark sync cq as non-listening when it is 2016-05-19 11:28:41 -07:00
David Garcia Quintas a20a2ad41b moved core_codegen from src/cpp/... to include/grpc++/... 2016-05-19 11:02:01 -07:00
David Garcia Quintas 2d02456e78 got rid of grpc_compression_options 2016-05-17 23:24:39 -07:00
David Garcia Quintas 9e9f7b62c7 Refactorings and renamings related to compression.
Also added levels to the channel args options.
2016-05-16 22:06:54 -07:00
Sree Kuchibhotla 8c34e7c3f1 Fix a typo 2016-05-16 19:26:22 -07:00
Sree Kuchibhotla 98a185a72e Change error to warning since we do not have a good way to determine
whether the server is sync or async
2016-05-16 18:45:15 -07:00
Sree Kuchibhotla 4790263c5f Merge branch 'master' into server_channel_affinity 2016-05-16 11:06:30 -07:00
Craig Tiller f7a670fe6d Merge branch 'server_channel_affinity' of github.com:sreecha/grpc into affine 2016-05-14 13:05:41 -07:00
David Garcia Quintas 183ba02ce7 Renamed some defines 2016-05-12 17:12:34 -07:00
Sree Kuchibhotla 8dbe2cb071 Merge branch 'master' into server_channel_affinity 2016-05-10 10:33:25 -07:00
Yuchen Zeng 26a1785cfc Resolve conflicts 2016-05-06 15:50:15 -07:00
Yuchen Zeng 7d099a5c90 Fix naming and comment problems 2016-05-06 13:21:36 -07:00
Yuchen Zeng 3b8f3354de Add plugins at the time of static initialization 2016-05-03 12:18:13 -07:00
Yuchen Zeng a42ec21341 Server builder plugin 2016-04-29 13:05:36 -07:00
David Garcia Quintas 1b2db6333d Moved protos out of core_codegen interface 2016-04-27 15:09:11 -07:00
Sree Kuchibhotla 30499760db Merge branch 'master' into server_channel_affinity 2016-04-26 11:27:14 -07:00
Craig Tiller 7beea147e5 Merge github.com:grpc/grpc into strong-includes 2016-04-21 17:07:36 -07:00
Sree Kuchibhotla 01907123f6 generate_projects.sh and fix copyright year 2016-04-21 15:09:13 -07:00
Sree Kuchibhotla 7def036085 Add a safety check to ensure atleast one of the completion queues is
listening completion queue (i.e frequently polled)
2016-04-21 14:54:32 -07:00
Sree Kuchibhotla 1f5e262589 Add the option of adding a non-listening server completion queue. This makes writing certain test cases (like hybrid_end2end tests) easier 2016-04-21 12:28:15 -07:00
Deepak Lukose dba4c5fd01 Add various options to verify ssl/tls client cert including letting the
application handle the authentication.
2016-04-19 15:02:06 -07:00
Craig Tiller 3ab2fe0094 Rollup of changes from the latest import 2016-04-11 20:11:18 -07:00
Jan Tattermusch abb4f5f3ab Merge pull request #6070 from ctiller/head-of-line-blocking
Fix a head of line blocking issue in the C++ server
2016-04-05 14:31:33 -07:00
Craig Tiller 06cb1a9d93 Initial interface rework to allow knowing whether to pull payload at registration, not at request time 2016-04-04 08:10:47 -07:00
Craig Tiller 399b3c42de Fix client_crash_test, implement idempotency, fail_fast for C++ 2016-04-01 12:24:18 -07:00
Craig Tiller 64a12c55df Merge github.com:grpc/grpc into copyright-fix 2016-03-31 07:49:58 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller 3bd9695939 Merge github.com:grpc/grpc into idempotent 2016-03-28 12:43:02 -07:00
Craig Tiller b7f3f6eec4 Fix copyright 2016-03-25 17:13:09 -07:00
Craig Tiller 9533d042d4 Fix includes 2016-03-25 17:11:06 -07:00
Craig Tiller 2e1903638e Fix copyrights 2016-03-25 14:33:26 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
Craig Tiller 44654553de Merge github.com:grpc/grpc into idempotent 2016-03-21 09:04:06 -07:00
Jan Tattermusch dadb32a01f Merge pull request #5843 from dgquintas/fix-grpc-lib
fixed multiple initialization of globals
2016-03-20 15:41:50 -07:00
Jan Tattermusch 8bce393aeb Merge pull request #5819 from dgquintas/compression_levels
Implemented compression level algorithms properly
2016-03-18 16:46:21 -07:00
David Garcia Quintas 146070db8d fixed multiple initialization of globals 2016-03-18 15:53:28 -07:00
Yuchen Zeng d85ef06064 Doc Fixit: src/cpp/README.md
Replace liquid templates with relative links.
2016-03-18 11:10:13 -07:00
David Garcia Quintas 13c2f6e69d Implemented compression level algorithms properly (as a function of the accepted algorithms by the call's peer. 2016-03-17 22:51:52 -07:00
Craig Tiller c65af4d784 Merge github.com:grpc/grpc into idempotent 2016-03-17 07:44:17 -07:00
Craig Tiller 4f7ffa05a4 Merge github.com:grpc/grpc into idempotent 2016-03-16 07:58:20 -07:00
David Garcia Quintas cd21266b5f Merge branch 'master' of github.com:grpc/grpc into codegen_lib 2016-03-15 17:10:45 -07:00
vjpai ee6902bcef Merge branch 'master' into revert-5599-revert-5572-srv_ctx 2016-03-14 09:47:40 -07:00
David Garcia Quintas aca123316b removed spurious namespace qualification 2016-03-09 23:56:54 -08:00
Craig Tiller 5987c70bd1 Punch through flags for incoming calls 2016-03-09 16:55:23 -08:00
David Garcia Quintas 79d9096126 removed spurious grpc_library.cc 2016-03-09 13:57:46 -08:00
Yuchen Zeng 798b0dc442 Doc Fixit: src/cpp/README need more information, revised 03092016
- Revised 'protoc' section and 'Documentation' section as LisaFC suggested.
- Added 'Examples' section as LisaFC suggested.

Resolves: #5661
2016-03-09 12:00:09 -08:00
David Garcia Quintas 60ee8dd2fc docstrings 2016-03-08 17:21:42 -08:00
Yuchen Zeng 341b5abef5 Doc Fixit: src/cpp/README need more information 2016-03-08 17:16:29 -08:00
David Garcia Quintas 1b634717ff copyright 2016-03-08 16:27:31 -08:00
David Garcia Quintas b942640497 clang-format 2016-03-08 16:25:11 -08:00
David Garcia Quintas be25493398 codegen interface usage of gpr_inf_future 2016-03-08 16:24:35 -08:00
David Garcia Quintas ef6848fe5b reverted gpr_ time changes 2016-03-08 16:05:30 -08:00
David Garcia Quintas 057a0a2033 fixed wrong refactoring 2016-03-08 15:23:08 -08:00
David Garcia Quintas 723af53419 moved some files around 2016-03-08 14:26:50 -08:00
David Garcia Quintas 8c3d9943f6 compiles! 2016-03-08 00:07:14 -08:00
David Garcia Quintas e1ce31eda3 wip. cq refactored 2016-03-07 18:19:12 -08:00
David Garcia Quintas 6848c4e145 wip. prior to cq refactoring 2016-03-07 17:10:57 -08:00
Sree Kuchibhotla b0d1567e8e Revert "Revert "Properly integrate async API with server-side cancellations."" 2016-03-07 10:51:02 -08:00
David Garcia Quintas b07938fa22 added missing initializer for global proto_serializer holder to codegen lib 2016-03-06 20:07:30 -08:00
Sree Kuchibhotla edd96e4926 Revert "Properly integrate async API with server-side cancellations." 2016-03-04 14:32:50 -05:00
Vijay Pai 13ee2f2df3 Properly integrate async API with server-side cancellations.
There is a comment above IsCancelled that says when it is ok to use this.
2016-03-03 13:57:32 -08:00
David Garcia Quintas 7f7181ffc5 fix comments 2016-03-02 20:42:16 -08:00
David Garcia Quintas c4f4f7ede9 clang-format 2016-03-02 20:37:24 -08:00
David Garcia Quintas 94c80d8389 copyrights 2016-03-02 20:35:07 -08:00
David Garcia Quintas f588aeb1e2 introduced workaround for proto_utils 2016-03-02 20:33:28 -08:00
David Garcia Quintas 45add8a445 Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-22 23:15:28 -08:00
Craig Tiller c8d34d50a2 Merge pull request #5287 from yang-g/global_callback_magic
Add a way to override channel arguments for server creation
2016-02-22 22:05:32 -08:00
David Garcia Quintas 0160873273 PR comments addressed 2016-02-22 17:49:45 -08:00
David Garcia Quintas ef02fb9d6f Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-22 17:41:41 -08:00
David Garcia Quintas 4105505b33 Fixed refactoring of grpc_arg pointer vtable 2016-02-17 18:23:15 -08:00
David Garcia Quintas 10e269897f Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-17 17:43:42 -08:00
David Garcia Quintas 5e07d76a86 Made Alarm's constructor a template for deadline 2016-02-17 17:10:41 -08:00
Sree Kuchibhotla 3cce2ecb12 Merge pull request #4859 from ctiller/sceq
Subchannel Sharing  [The interop tests failures and Basic test failures are unrelated to this change. Merging]
2016-02-17 16:03:52 -08:00
Sree Kuchibhotla ac94c430d2 Merge pull request #5186 from yang-g/inherit_from_grpc_library
Provide explicit API for user to set user agent string prefix
2016-02-17 15:51:57 -08:00
yang-g eb62c94338 Add a way to override channel arguments for server creation 2016-02-17 15:37:25 -08:00
yang-g 9384dd971a add comments 2016-02-17 14:25:23 -08:00
Craig Tiller c0ce00fd16 Merge github.com:grpc/grpc into sceq 2016-02-17 14:25:12 -08:00
yang-g a3c968d9c2 Merge remote-tracking branch 'upstream/master' into inherit_from_grpc_library 2016-02-12 14:54:16 -08:00
vjpai d8e2c70fde Remove a vestige 2016-02-11 14:59:27 -08:00
vjpai fd307efbd1 fixed_size_thread_pool : why do we even have that lever? It has been
deprecated and unused for quite some time.
2016-02-11 14:56:23 -08:00
Vijay Pai 810a13e2d3 Remove a small allocation, at the cost of a little uglier header file.
This commit may or may not be a great tradeoff.
2016-02-11 03:30:10 -08:00
Vijay Pai c41abec7f8 Sanity: clang-format and regen projects 2016-02-11 00:23:21 -08:00
vjpai 8fdafede06 tag fed in by user should be any arbitrary tag, not a CompletionQueueTag
type
2016-02-10 23:16:55 -08:00
yang-g 1945ae4285 Fix copyright 2016-02-10 12:48:32 -08:00
yang-g d59ad7ef39 Provide explicit API for user to set user agent string prefix 2016-02-10 12:42:53 -08:00
Craig Tiller f73429901a Merge github.com:grpc/grpc into sceq 2016-02-09 16:32:51 -08:00
Craig Tiller 841c726140 Merge github.com:grpc/grpc into sceq 2016-02-02 09:23:22 -08:00
Sree Kuchibhotla 369a04ace6 Address code review comments 2016-02-01 10:53:13 -08:00
Sree Kuchibhotla 7fa9d6f4c8 TryCancel() on ServerContext() 2016-01-28 17:32:48 -08:00
Craig Tiller 8c50db09b9 Merge github.com:grpc/grpc into sceq 2016-01-28 11:38:21 -08:00
David Garcia Quintas d79ef3af71 Fixed wrong usage of global var 2016-01-28 00:21:27 -08:00
David Garcia Quintas b4e51b52bd Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces 2016-01-27 19:57:58 -08:00
David Garcia Quintas 5a9462339d copyrights 2016-01-27 19:22:14 -08:00
David Garcia Quintas e1300deb87 After GrpcLibrary refactoring. Compiles and passes. WIP still 2016-01-27 18:41:26 -08:00
Vijay Pai e0b0e27f3a clang-format 2016-01-27 09:47:33 -08:00
Vijay Pai 17e630af30 Fix a case in bbuf copy constructore 2016-01-26 17:56:20 -08:00
Craig Tiller 64616496e2 Alternative ownership for global callbacks 2016-01-26 14:16:20 -08:00
David Garcia Quintas b523c732d1 async_stream.h done. Compiles 2016-01-25 18:22:28 -08:00
David Garcia Quintas 2425bbbc55 Further work. Compiles. WIP 2016-01-25 17:32:48 -08:00
David Garcia Quintas 541db25d45 Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces 2016-01-25 12:53:50 -08:00
Craig Tiller 194824467c Get subchannel index working 2016-01-25 09:59:20 -08:00
Craig Tiller 5de79ee59f clang-format 2016-01-25 08:16:02 -08:00
Craig Tiller 8b052112f2 Merge github.com:grpc/grpc into sceq 2016-01-25 08:09:23 -08:00
Bogdan Drutu 2ee3e8d7e8 Merge remote-tracking branch 'upstream/master' 2016-01-24 17:38:15 -08:00
Jan Tattermusch c4d9f6de66 fix copyrights in server_context 2016-01-23 07:50:25 -08:00
yang-g 5ff8de3452 init deadline_ 2016-01-22 16:55:10 -08:00
David Garcia Quintas a43aadd7e1 fixed copyrights 2016-01-21 10:01:28 -08:00
David Garcia Quintas 08a0a3306e Made "codedgen" directories closed over #includes 2016-01-21 01:04:36 -08:00
David Garcia Quintas f3ddb7c55a clang-format 2016-01-20 16:02:22 -08:00
David Garcia Quintas a701ed7759 Merge branch 'proto_interfaces' into yang-g-sync_async_mix 2016-01-19 18:44:47 -08:00
Bogdan Drutu 3e60e3228a Update the copyrights of the modified files. 2016-01-19 13:02:55 -08:00
Craig Tiller b22aeae462 Merge github.com:grpc/grpc into sceq 2016-01-15 21:13:52 -08:00
yang-g b971173712 Add tests with a second service 2016-01-15 16:53:08 -08:00
David Garcia Quintas 44f3249018 Introduced ServerInterface 2016-01-15 16:49:16 -08:00
yang-g 1ac6f4594e warn user when they forget register generic service 2016-01-15 11:46:40 -08:00
yang-g f48766d347 fix copyright 2016-01-15 11:26:31 -08:00
yang-g 269b8be406 add generic test 2016-01-15 10:46:26 -08:00
Bogdan Drutu ee142ab634 Merge remote-tracking branch 'upstream/master' 2016-01-14 15:33:30 -08:00
yang-g 25f191d49b merge with head 2016-01-14 11:51:11 -08:00
yang-g b9a1377fab Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-14 09:50:48 -08:00
yang-g f80573502a destroy reader after using it 2016-01-14 09:07:58 -08:00
Bogdan Drutu 618051c8ca Fix the build. 2016-01-14 08:54:43 -08:00
Craig Tiller 754bd26e28 clang-format code 2016-01-14 06:10:15 -08:00
murgatroid99 eeb02ba77a Update copyrights again 2016-01-13 20:43:33 -08:00
yang-g d42262e22e merge with head 2016-01-13 15:32:51 -08:00
yang-g bef0d8744e Support sync/async methods in the same service 2016-01-13 15:27:33 -08:00
Craig Tiller edc2fffb34 Channel args comparisons 2016-01-13 06:54:27 -08:00
Bogdan Drutu c318d7014b Add virtual destructors for the default implementations as well. 2016-01-12 16:43:49 -08:00
Vijay Pai b30bc2aad6 Remove dead code and a thus unneeded change to C++ bbuf 2016-01-11 10:11:50 -08:00
Vijay Pai 6045681003 Merge branch 'master' into bbuf 2016-01-11 10:08:26 -08:00
Craig Tiller 15f383c6cc Exploratory refactoring for mixed sync/async methods on the same C++ service 2016-01-07 12:45:32 -08:00
vjpai de332dfcac Refactor server side to support generic tests. 2016-01-07 10:20:46 -08:00
Vijay Pai 18c0477528 Got rid of all compilation problems, now need to test 2016-01-04 09:52:10 -08:00
Craig Tiller 7536af02cf Eliminate gpr_ int types - and insist on C99 variants instead 2015-12-22 13:49:30 -08:00
vjpai be75ffd028 Merge branch 'master' into bbuf 2015-12-22 10:40:16 -08:00
Bogdan Drutu 6af31bd04f Fix the naming conflict issue that cause the tests to fail. 2015-12-12 15:39:40 -08:00
Bogdan Drutu 42ab3fa5fa Add a destructor callback as well 2015-12-11 19:48:19 -08:00
Bogdan Drutu 38d2ad6e96 Add a hook for the default constructor of ClientContext. 2015-12-11 19:29:07 -08:00
Jan Tattermusch 88086373db make gpr_timespec platform agnostic 2015-12-10 15:04:59 -08:00
Jan Tattermusch 5dc93c363b include climits 2015-12-07 17:59:35 -08:00
Jan Tattermusch 5b155e5674 more win x64 fixes 2015-12-07 17:59:32 -08:00
Craig Tiller c9614d3003 Merge pull request #4175 from yang-g/tcp_refactor
Refactor security connector and handshake
2015-12-03 13:30:34 -08:00
Craig Tiller 35c1d3c462 Merge pull request #4207 from yang-g/server_builder_options
Server builder options
2015-12-03 11:39:44 -08:00
jboeuf 6f9b171842 Merge pull request #4204 from ctiller/emergency-cheese-and-crackers
Global hook for doing something in response to a synchronous server call
2015-12-02 20:55:37 -08:00
Craig Tiller 06dd04cfd3 Further review feedback 2015-12-02 15:56:27 -08:00
yang-g d88e1d8f4e merge with head and resolve conflict 2015-12-02 13:23:33 -08:00
Craig Tiller 8352b9e997 Review feedback 2015-12-02 11:43:40 -08:00
Nicolas "Pixel" Noble f9c58f3bf7 Merge branch 'release-0_12'
Conflicts:
	src/core/security/credentials.c
	test/core/security/credentials_test.c
2015-12-01 22:40:44 +01:00
vjpai 594f0c43e0 Merge branch 'master' into bbuf 2015-11-30 15:53:49 -08:00
vjpai b6df94ad22 WIP 2015-11-30 15:52:50 -08:00
yang-g 52705590e4 Add set pointer api to channel_arguments 2015-11-25 11:45:33 -08:00
yang-g a23f17b123 add server_builder_option 2015-11-25 10:21:05 -08:00
Craig Tiller 7221d999bb Global hook for doing something in response to a synchronous server call 2015-11-24 06:59:33 -08:00
Julien Boeuf 114f39475f Cpp example of how the plugins can be done. 2015-11-19 22:24:05 -08:00
Julien Boeuf caf9935e45 Also adding a credentials type to the plugin API.
The purpose of this is to be able to install a composition policy that
describes which types are incompatible and that will be enforced during
call creds composition.

If this functionality is wanted it will be done in an additive function in
the API like :

void grpc_call_credentials_set_composite_policy(
  grpc_call_credentials_composite_policy policy);
2015-11-19 22:00:30 -08:00
Julien Boeuf 3c957e60a3 Fixing implementations. 2015-11-18 21:33:58 -08:00
Craig Tiller b113649517 clang-format 2015-11-18 11:30:17 -08:00
David G. Quintas 75b53d6a5d Merge pull request #3993 from ctiller/new_op
Core transport & call cleanup
2015-11-18 08:52:10 -08:00
Julien Boeuf 232d625a84 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 20:55:13 -08:00
Julien Boeuf 675b5ce861 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 15:05:45 -08:00
yang-g a89bf50cf1 Handle cancel before start case 2015-11-17 14:19:17 -08:00
Craig Tiller 9beccc6024 Merge github.com:grpc/grpc into new_op 2015-11-04 09:09:24 -08:00
Craig Tiller 187c4b36d9 Merge pull request #3177 from podsvirov/topic-grpc-string-ref-npos-redifinition
Move static value grpc::string_ref::npos definition to cc file
2015-11-04 08:04:56 -08:00
Craig Tiller 5925603101 stream_op cleanup: miscellany 2015-11-02 14:19:15 -08:00
Julien Boeuf 3bb61d8917 Merge branch 'master' of https://github.com/grpc/grpc into core_creds_api_change 2015-10-17 22:14:29 -07:00
David Garcia Quintas 5f9e979e8c Merge branch 'master' of github.com:grpc/grpc into cq_alarm 2015-10-13 15:26:33 -07:00
David Garcia Quintas 9c97aaed08 Merge branch 'master' of github.com:grpc/grpc into cq_alarm 2015-10-12 21:21:18 -07:00
Julien Boeuf 54a902ed17 Successfully compile C++ libary (not tests yet). 2015-10-12 14:09:03 -07:00
Craig Tiller 2b15f1e25a Merge github.com:grpc/grpc into latent-see 2015-10-09 17:07:56 -07:00
Craig Tiller 0ba432d445 Move profiling system to gpr 2015-10-09 16:57:11 -07:00
Craig Tiller 1f41b6b5ed Simplify adding annotations, annotate more things 2015-10-09 15:07:02 -07:00
Craig Tiller 86253ca1da Latency traces 2015-10-08 13:31:02 -07:00
David Garcia Quintas 7fd0fd5023 C++ Alarm implementation (with tests). 2015-10-07 19:04:58 -07:00
yang-g b063c87596 mark unreachable code with a macro 2015-10-07 11:40:13 -07:00
Tim Emiola 25061413cf Merge pull request #3602 from grpc/release-0_11
Upmerge from beta to master.
2015-10-02 13:43:14 -07:00
Tim Emiola 9908877a73 Update README.mds that don't currently have Status 'Beta' 2015-10-01 10:54:25 -07:00
Craig Tiller b7a597771f Merge github.com:grpc/grpc into clangf 2015-10-01 08:01:58 -07:00
Vijay Pai e547bdf4d7 Fix an assert 2015-09-29 23:29:38 +00:00
Vijay Pai e57abcfbdb C++ changes required to maintain gcc4.4 compatibility - reduce use
of ambiguous nullptr, eliminate use of brace initializer lists
2015-09-29 22:55:34 +00:00
Craig Tiller 71a0f9d3b0 Fix clang-format script 2015-09-28 17:22:01 -07:00
Nicolas Noble 0f9a118f4e Merge pull request #3474 from ctiller/clang_format
Add clang-format to sanity
2015-09-25 22:04:11 -07:00
Craig Tiller dd69342218 Merge github.com:grpc/grpc into clang_format 2015-09-25 09:56:52 -07:00
Craig Tiller cc5dc5bbaf Fast path for proto serialization for small protos 2015-09-24 17:02:22 -07:00
Craig Tiller ddf3a511aa Add clang-format to sanity 2015-09-24 13:03:44 -07:00
Craig Tiller 04456843cd Windows fixes 2015-09-23 10:07:16 -07:00
Julien Boeuf 8b0b6f413d It is a bad idea to have a map with string_refs as output params.
This is very much unsafe as the string_ref could point on a stack
variable of the callee.
2015-09-22 13:31:16 -07:00
Julien Boeuf 14929d4e35 Credentials plugin fixes (after the branch was merged). 2015-09-21 20:57:26 -07:00
Julien Boeuf fd2f7331fa Merge branch 'master' of github.com:grpc/grpc into core_creds_plugin 2015-09-15 15:20:26 -07:00
David Garcia Quintas 49dd250565 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-09-08 16:01:09 -07:00
yang-g 61e461e890 Guard against empty vector 2015-09-03 15:54:05 -07:00
Craig Tiller d6599a39e4 Replicate C++ docs from master to beta branch
Original PR #3074 by @dgquintas
2015-09-03 09:37:02 -07:00
yang-g deb3d2255d Add missed header 2015-09-01 12:51:28 -07:00
Konstantin Podsvirov dc90c13bec Move static value grpc::string_ref::npos definition to cc file 2015-09-01 16:18:57 +03:00
Julien Boeuf 2d041188db Design and implementation of the core credentials plugin API.
- We use C++ as an example to show how this API can be used while still
  providing an idiomatic interface in the wrapped language of choice.
- No testing yet.
2015-08-31 20:30:09 -07:00
Julien Boeuf 5be92a316d Shuffling headers around. 2015-08-28 16:28:18 -07:00
Julien Boeuf 97cd4ae606 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-28 15:51:02 -07:00
Julien Boeuf 6c7185d350 Merge branch 'master' of github.com:grpc/grpc into credentials_naming_and_cleanup 2015-08-28 14:33:17 -07:00
Julien Boeuf a883ccfb46 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-28 14:13:04 -07:00
Julien Boeuf 0c711ad88b Adding C++ metadata processor.
- Had to chnage the core API to add a destroy function pointer in
  grpc_auth_metadata_processor.
- Tested end to end.
- Fixed some issues in the server_auth_filter (we were not checking the
  length which put us at risk of an overflow).
2015-08-28 14:10:58 -07:00
Craig Tiller 89d56103eb Merge pull request #3104 from yang-g/create_channel
Create channel API change
2015-08-27 21:04:56 -07:00
Julien Boeuf 459faf3821 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-27 16:07:46 -07:00
Julien Boeuf fe4bacb641 Merge branch 'credentials_naming_and_cleanup' of github.com:jboeuf/grpc into credentials_naming_and_cleanup 2015-08-27 15:49:27 -07:00
Craig Tiller 08348334e5 Merge pull request #2947 from jboeuf/grpc_security_abi
First draft at addressing #1799 for grpc_security.
2015-08-27 12:43:25 -07:00
yang-g 730055d962 implementation fix 2015-08-27 12:29:45 -07:00
yang-g dafcce980d channel creation API change 2015-08-27 11:34:05 -07:00
Julien Boeuf 35b559f6f7 Aligning C++ interface with C for the auth metadata processor. 2015-08-26 23:17:35 -07:00
yang-g 0d9f81f741 minor fixes 2015-08-26 22:04:30 -07:00
Julien Boeuf 5b3516e2c5 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-26 11:19:10 -07:00
yang-g 5e700f3d1f Merge remote-tracking branch 'upstream/master' into string_ref_auth 2015-08-26 10:16:31 -07:00
Craig Tiller 47ec9a40ad Add ostream support for string_ref 2015-08-26 09:47:51 -07:00
Julien Boeuf 510a920c75 Credentials cleanup:
- Removing service_accounts credentials. These credentials just have
  drawbacks compared to service_account_jwt_access credentials, notably
  in terms for security.
- Renaming Google specific credentials with a Google prefix for C and
  C++. This should be done as well for wrapped languages.
2015-08-25 21:51:07 -07:00
Julien Boeuf c5b570f97e Adding void* at then end of security related method in order to have a stable ABI. 2015-08-25 17:47:55 -07:00
yang-g d090fe1379 auth context api change for string_ref 2015-08-25 16:53:07 -07:00
yang-g e21908fcee impl 2015-08-25 13:47:51 -07:00
yang-g d5539ec6e2 remove constexpr since gcc 4.4 or vs2010 does not support it 2015-08-25 11:05:29 -07:00
Julien Boeuf 0382bfae38 Merge branch 'master' of github.com:grpc/grpc into cpp_string_ref 2015-08-24 23:55:43 -07:00
Julien Boeuf 8fd915ab8d Adding grpc::string_ref class.
- Strict subset of
  http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html
- Useful to avoid unnecessary string copies.
2015-08-24 23:41:54 -07:00
yang-g 9d1f0c4a0c Fix merge failures 2015-08-24 16:08:36 -07:00
yang-g 3e4bd9598b merge with head 2015-08-24 15:54:07 -07:00
David Garcia Quintas e4f7c2fd13 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-08-24 15:31:59 -07:00
Vijay Pai 0660eaca00 Merge branch 'master' into fray 2015-08-24 14:33:39 -07:00
David Garcia Quintas d09bae5b48 Merge branch 'compression-accept-encoding' of github.com:dgquintas/grpc into compression-accept-encoding 2015-08-24 12:11:26 -07:00
David Garcia Quintas c43648f250 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-08-24 12:08:38 -07:00
Vijay Pai e8a7e30a75 Eliminate public thread-pool interface 2015-08-24 10:52:33 -07:00
Craig Tiller b7e22b9686 Merge github.com:grpc/grpc into y12kdm3 2015-08-21 16:06:30 -07:00
Craig Tiller 849c7ca4b2 prettify comment 2015-08-21 16:06:05 -07:00
yang-g 9e2f90cd06 headers reorg 2015-08-21 15:35:03 -07:00
yang-g 961eeb0b44 Merge remote-tracking branch 'upstream/master' into docs 2015-08-20 12:18:28 -07:00
yang-g c317f07b56 Make Channel ctor private 2015-08-20 12:18:08 -07:00
yang-g ef00308e39 remove internal_stub 2015-08-20 11:40:51 -07:00
yang-g c2bd8a6d1a Fix server side and generic stub 2015-08-20 11:40:12 -07:00
Yang Gao 48c9f250c2 Merge pull request #2977 from ctiller/shutdown-c++
Add a deadline to Server::Shutdown
2015-08-19 21:49:10 -07:00
yang-g 8c2be9f228 Remove ChannelInterface and replace it with Channel 2015-08-19 16:28:09 -07:00
David Garcia Quintas cb30410b10 Comments and derived bugfixes. 2015-08-19 15:50:54 -07:00
yang-g 2f543f205c Bug fix. Called c_str on a temp string 2015-08-19 15:14:17 -07:00
Craig Tiller 86d31776a8 Fix syncronous unimplemented methods 2015-08-19 12:52:50 -07:00
Craig Tiller 681a291d12 Extend comment 2015-08-19 11:31:25 -07:00
Craig Tiller 9374ce819b Add comments, fix a subtle bug 2015-08-19 10:15:44 -07:00
David Garcia Quintas 7fc37a2385 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-08-18 16:11:09 -07:00
Craig Tiller 128f4a9cfe Merge github.com:grpc/grpc into y12kdm3 2015-08-18 12:51:05 -07:00
Craig Tiller 5c6e6276be Merge github.com:grpc/grpc into shutdown-c++ 2015-08-18 12:45:09 -07:00
Craig Tiller e50e5cbde2 Add a timeout to shutdown to forcefully end calls 2015-08-18 12:44:57 -07:00
Craig Tiller d6c98df792 clang-format all source 2015-08-18 09:33:44 -07:00
Craig Tiller bb1c795f99 Merge pull request #2965 from yang-g/lame_client_error_message
Let lame_client accept error status
2015-08-18 09:27:28 -07:00
yang-g c31cd86a74 Let lame_client accept error status 2015-08-17 15:37:27 -07:00
Craig Tiller f2066040d2 Merge github.com:grpc/grpc into y12kdm3 2015-08-17 15:04:09 -07:00
Craig Tiller 629c6f534f Re-add accidentally deleted code 2015-08-17 14:59:51 -07:00
Vijay Pai 2461bf675e Merge pull request #2907 from yang-g/error_code_conforming
return StatusCode::INTERNAL for proto parsing error
2015-08-17 13:59:07 -07:00
Craig Tiller 8f7bff7d48 Merge github.com:grpc/grpc into y12kdm3 2015-08-17 13:23:14 -07:00
Julien Boeuf bc265583d6 Addressing comments. Thanks Yang! 2015-08-17 13:23:05 -07:00
Julien Boeuf 8da211f638 Forgot to commit this file... 2015-08-14 12:57:42 -07:00
Julien Boeuf bf25bb01bb Few improvements:
- Guarantee the lifetime of objects passed to the processor.
- Add an option for implementers of the processor to make it
  non-blocking.
2015-08-14 12:36:11 -07:00
vjpai 1c9ba198c3 Make comment look finished 2015-08-14 10:54:10 -07:00
Vijay Pai 8fe60a87ea Use emplace_back properly and when appropriate, considering limitations
of gcc4.4
2015-08-14 17:02:59 +00:00
Julien Boeuf d3920a28c6 Fixing build after sync with upstream master. 2015-08-13 22:33:58 -07:00
Julien Boeuf 455dc6ff0d Merge branch 'master' of https://github.com/grpc/grpc into cpp_auth_md_processor 2015-08-13 22:25:15 -07:00
Julien Boeuf 5941335be3 Fixing lifetime of input metadata issue. 2015-08-13 22:03:56 -07:00
Julien Boeuf c2274e7069 Adding C++ auth metadata processor.
- We always do the processing asynchronously but maintain a synchronous
  API for the implementor of the processor.
- there are a lot of string copies right now. Having a StringPiece
  object in grpc++ would really help with that (as we would use it for
  C++ metadata).
- Please review the API carefully and if you're happy with it, I'll
  proceed with tests.
2015-08-13 17:25:52 -07:00
Vijay Pai 8c0389d84e Merge pull request #2921 from yang-g/unknown_service
Use a sync service to handle requests to unknown services
2015-08-13 15:30:01 -07:00
yang-g 523201cee0 remove redundant ctor 2015-08-13 14:47:42 -07:00
yang-g 9b7757dd35 Use a sync service to handle requests to unknown services 2015-08-13 11:15:53 -07:00
Nicolas "Pixel" Noble d53b389607 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	src/cpp/client/channel.cc
	src/cpp/client/client_context.cc
2015-08-13 19:20:39 +02:00
David G. Quintas edb1d616dc Merge pull request #2890 from yang-g/client_context
client code clean up
2015-08-13 07:31:13 -07:00
yang-g f99c090625 return StatusCode::INTERNAL for proto parsing error 2015-08-12 13:21:58 -07:00
yang-g 37ce034dc1 add const 2015-08-12 11:46:26 -07:00
Nicolas "Pixel" Noble b457cd831a Merge remote-tracking branch 'google/master' into the-ultimate-showdown
Conflicts:
	src/csharp/ext/grpc_csharp_ext.c
2015-08-12 01:14:17 +02:00
yang-g 0c034a01d1 client code clean up 2015-08-11 12:37:32 -07:00
yang-g 9fc755f465 Add to all secure credentials 2015-08-10 16:39:08 -07:00
yang-g e71a6b094b call grpc_init for defaultcredentials 2015-08-10 15:48:34 -07:00
David Garcia Quintas beac88ca56 Server: added the ability to disable compression algorithm 2015-08-10 15:08:41 -07:00
yang-g ffc8a6b431 move auth property iterator declaration into auth_context.h 2015-08-10 12:26:39 -07:00
Nicolas "Pixel" Noble 9d72b149a9 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	include/grpc/grpc.h
	src/core/surface/channel.c
	src/core/surface/channel_create.c
	src/core/surface/completion_queue.c
	src/cpp/client/channel.cc
	src/cpp/client/insecure_credentials.cc
	src/csharp/ext/grpc_csharp_ext.c
	src/node/ext/call.cc
	src/node/ext/channel.cc
	src/php/ext/grpc/call.c
	src/php/ext/grpc/channel.c
	src/python/grpcio/grpc/_adapter/_c/types/channel.c
	src/ruby/ext/grpc/rb_channel.c
	test/core/end2end/dualstack_socket_test.c
	test/core/end2end/fixtures/chttp2_fullstack.c
	test/core/end2end/fixtures/chttp2_fullstack_compression.c
	test/core/end2end/fixtures/chttp2_fullstack_uds_posix.c
	test/core/end2end/fixtures/chttp2_fullstack_with_poll.c
	test/core/end2end/multiple_server_queues_test.c
	test/core/end2end/no_server_test.c
	test/core/end2end/tests/bad_hostname.c
	test/core/end2end/tests/cancel_after_accept.c
	test/core/end2end/tests/cancel_after_accept_and_writes_closed.c
	test/core/end2end/tests/cancel_after_invoke.c
	test/core/end2end/tests/cancel_before_invoke.c
	test/core/end2end/tests/cancel_in_a_vacuum.c
	test/core/end2end/tests/census_simple_request.c
	test/core/end2end/tests/disappearing_server.c
	test/core/end2end/tests/early_server_shutdown_finishes_inflight_calls.c
	test/core/end2end/tests/empty_batch.c
	test/core/end2end/tests/graceful_server_shutdown.c
	test/core/end2end/tests/invoke_large_request.c
	test/core/end2end/tests/max_concurrent_streams.c
	test/core/end2end/tests/max_message_length.c
	test/core/end2end/tests/ping_pong_streaming.c
	test/core/end2end/tests/registered_call.c
	test/core/end2end/tests/request_response_with_binary_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_payload.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
	test/core/end2end/tests/request_with_compressed_payload.c
	test/core/end2end/tests/request_with_flags.c
	test/core/end2end/tests/request_with_large_metadata.c
	test/core/end2end/tests/request_with_payload.c
	test/core/end2end/tests/server_finishes_request.c
	test/core/end2end/tests/simple_delayed_request.c
	test/core/end2end/tests/simple_request.c
	test/core/end2end/tests/simple_request_with_high_initial_sequence_number.c
	test/core/fling/client.c
	test/core/fling/server.c
	test/core/surface/lame_client_test.c
2015-08-08 01:45:38 +02:00
yang-g 87e133e13a merge with head 2015-08-06 22:51:27 -07:00
yang-g c8abca8f53 Resolve comments 2015-08-06 22:50:16 -07:00
Craig Tiller 2c3be1df4f Add tests for C++ propagation 2015-08-05 15:59:27 -07:00
yang-g 8708dd76c1 Add WaitForState 2015-08-05 15:57:14 -07:00
Craig Tiller bb5361453f C++ context propagation 2015-08-05 15:18:19 -07:00
yang-g 36f5965247 clean up and add a test 2015-08-05 15:15:18 -07:00
yang-g a73dc1c708 specialize deadline type and implementation 2015-08-05 14:24:00 -07:00
Craig Tiller a600d58551 Merge github.com:grpc/grpc into propagate 2015-08-05 10:44:45 -07:00
Abhishek Kumar 183c9f77a7 Merge pull request #2767 from ctiller/no-poop-on-pizza
Rename grpc_server_add_http2_port to grpc_server_add_insecure_http2_port
2015-08-05 10:25:35 -07:00
Craig Tiller 18541a1cee Merge github.com:grpc/grpc into propagate 2015-08-05 08:10:22 -07:00
yang-g d45a26ed06 allow null tag 2015-08-04 16:36:22 -07:00
yang-g 5239ee2bd0 Merge remote-tracking branch 'upstream/master' into cancel 2015-08-04 16:15:57 -07:00
yang-g b335256444 Add AsyncNotifyWhenDone 2015-08-04 14:42:06 -07:00
Craig Tiller 902d9c4722 Merge pull request #2749 from yang-g/default_host_to_null
Pass NULL as host by default. Use context.authority() or channel.SslN…
2015-08-04 14:28:49 -07:00
Craig Tiller c5ae3eb8d6 Rename grpc_server_add_http2_port to grpc_server_add_insecure_http2_port 2015-08-03 10:42:22 -07:00
Craig Tiller c7df0df618 Implement cancellation propagation, define auth propagation 2015-08-03 08:06:50 -07:00
Craig Tiller 3e7c6a701c Core-supported context inheritance sketch 2015-07-31 16:17:04 -07:00
yang-g d556da9f28 Pass NULL as host by default. Use context.authority() or channel.SslNameOverride() when set. 2015-07-31 15:59:04 -07:00
Nicolas "Pixel" Noble 4960516c63 Properly initializing reserved pointer in tests. 2015-08-01 00:33:29 +02:00
yang-g b803313b2c merge with head and resolve conflicts 2015-07-31 14:15:36 -07:00
Alistair Veitch 1178900c04 merge with master, fix build issue 2015-07-30 14:38:00 -07:00
Alistair Veitch 6796805897 Merge branch 'master' into issue_2709 2015-07-30 14:35:22 -07:00
Vijay Pai c226edcadc Merge pull request #2706 from yang-g/remove_get_from_accessor
make accessors from get_x() to x()
2015-07-30 11:44:28 -07:00
yang-g dcf6c90b33 merge with head 2015-07-30 11:35:18 -07:00
Yang Gao 7ee4b89d59 Merge pull request #2670 from a-veitch/server_context
Server side census context plumbing for c++
2015-07-30 10:04:21 -07:00
Alistair Veitch ff32faf3c9 Move grpc_census_call_*_context calls into public header 2015-07-30 09:54:15 -07:00
Alistair Veitch 100a6e1d82 add struct include/grpc++/server_context.h src/cpp/server/server_context.cc 2015-07-29 15:25:28 -07:00
yang-g 9a009f2a75 make accessors from get_x() to x() 2015-07-29 11:38:18 -07:00
yang-g f1ec377063 server api 2015-07-28 23:05:22 -07:00
yang-g c07d9bf668 client api 2015-07-28 09:19:22 -07:00
Craig Tiller 753b3cbb5b Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other 2015-07-28 07:36:45 -07:00
Julien Boeuf 4aee724004 Merge branch 'master' of github.com:grpc/grpc into ssl_force_client_auth 2015-07-27 16:16:29 -07:00
Alistair Veitch cf39e94872 Server side census context plumbing for c++ 2015-07-26 17:28:26 -07:00
Craig Tiller d9aed1d010 Merge github.com:grpc/grpc into elliptic-orange-chamelion
Conflicts:
	src/csharp/ext/grpc_csharp_ext.c
2015-07-26 12:55:47 -07:00
Craig Tiller dfc42da760 Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other
Conflicts:
	src/core/iomgr/tcp_server_windows.c
2015-07-26 12:37:53 -07:00
Vijay Pai f0c66c6365 Merge branch 'master' into deepend 2015-07-24 10:51:27 -07:00
vjpai 24b3b7e3d4 Fix thread list iterator 2015-07-23 18:51:03 -07:00
vjpai 02b80549e9 Bug fixes 2015-07-23 17:44:45 -07:00
Yang Gao b5bbf66779 Merge pull request #2629 from ctiller/always-with-the-mono
Make the server report monotonic times for deadlines
2015-07-23 16:35:29 -07:00
Vijay Pai 1f3e6c1ebe Start switching everything to dynamic pool 2015-07-23 16:18:21 -07:00
vjpai b76f3ada11 Fix bug on shutdown case 2015-07-23 14:41:23 -07:00
vjpai b28456b1e4 Add dynamic thread pool and initial port of test 2015-07-23 14:17:10 -07:00
Yang Gao 2e7ce15635 Merge pull request #2617 from jboeuf/jwt_creds_renaming
Renaming jwt_credentials to service_account_jwt_access_credentials.
2015-07-23 13:29:01 -07:00
Craig Tiller 7cb0853755 Merge github.com:grpc/grpc into elliptic-orange-chamelion 2015-07-23 11:29:44 -07:00
Craig Tiller b256faa353 Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other 2015-07-23 11:28:16 -07:00
Craig Tiller 94329d0965 Make the server report monotonic times for deadlines
For very high performance systems, we're going to want to be able to
simply push the value reported from the server down onto clients.

If we report realtime now, then all wrapped languages are going to
assume it, meaning that such a change will be impossible later.
2015-07-23 09:52:11 -07:00
Yang Gao b70440bb1d Merge pull request #2542 from ctiller/tell-me-who-you-might-be
Expose call peer uri from C core
2015-07-23 09:16:37 -07:00
Nicolas "Pixel" Noble ebb514066e Changing the library's code to adapt with the new API. 2015-07-23 02:41:33 +02:00
Julien Boeuf fe4c3f4f14 Renaming jwt_credentials to service_account_jwt_access_credentials. 2015-07-22 16:20:13 -07:00
Julien Boeuf 5029b30d1c Adding option to force client auth on the server SSL creds. 2015-07-21 23:02:16 -07:00
Craig Tiller 33c0d9d83d C++ is also a language that can be insecure 2015-07-21 18:11:44 -07:00
Craig Tiller 60fb201277 Merge github.com:grpc/grpc into now-i-get-to-show-it-to-EVERYBODY
Conflicts:
	src/cpp/client/channel_arguments.cc
2015-07-20 21:37:13 -07:00
Craig Tiller ac392e2385 Merge branch 'tell-me-who-you-might-be' of github.com:ctiller/grpc into tell-me-who-you-might-be 2015-07-20 21:30:59 -07:00
Craig Tiller 81bcc4caba Make endpoint peer API work on Windows 2015-07-20 14:04:18 -07:00
Craig Tiller bf6abeef3d Remove experimental prefix 2015-07-19 22:31:04 -07:00
Craig Tiller b4fdd32100 Merge github.com:grpc/grpc into now-i-get-to-show-it-to-EVERYBODY
Conflicts:
	src/cpp/client/channel_arguments.cc
2015-07-19 22:26:26 -07:00
Craig Tiller b4e70366c6 Merge branch 'decompression' of https://github.com/dgquintas/grpc into dgquintas-decompression
Conflicts:
	Makefile
	vsprojects/Grpc.mak
2015-07-19 15:35:17 -07:00
Craig Tiller 0dc5e6cf16 User agent string support 2015-07-18 20:39:34 -07:00
Nicolas Noble e9881bbaf3 Merge pull request #2403 from ctiller/no-worries-i-can-wait
Add a clock_type field to gpr_timespec
2015-07-17 15:39:28 -07:00
David Garcia Quintas cadbf22467 Removed compression levels from clients and _experimental_'d signature of methods manipulating compression algorithms 2015-07-17 15:33:13 -07:00
Craig Tiller 29cb6dd21f Merge pull request #2482 from vjpai/rename_schedule_callback
ThreadPoolInterface::ScheduleCallback --> ThreadPoolInterface::Add
2015-07-17 15:30:33 -07:00
Craig Tiller c9fef6f521 Merge github.com:grpc/grpc into no-worries-i-can-wait 2015-07-17 14:41:12 -07:00
Craig Tiller eec373c555 Merge pull request #2413 from dgquintas/interop_sniffer
Introduced InteropContextInspector
2015-07-17 11:30:57 -07:00
vjpai 72a44178e9 ThreadPoolInterface::ScheduleCallback --> ThreadPoolInterface::Add 2015-07-16 21:44:44 -07:00
yang-g fb58d239ef Merge with head 2015-07-16 21:03:49 -07:00
yang-g 7ef7232dd9 split iterator into its own file 2015-07-16 21:00:51 -07:00
David Garcia Quintas 7cceb09b79 Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-16 17:01:18 -07:00
Craig Tiller 9a3f858f93 Merge pull request #2460 from vjpai/exposed_pool
Make thread_pool.h a public header
2015-07-16 16:26:19 -07:00
vjpai a2e1bb1577 Change name of thread_pool files to fixed_size_thread_pool when
appropriate
2015-07-15 16:49:49 -07:00
David Garcia Quintas 6dd49a5c8f Added some methods to context inspector. Also minor tweak to server context IsCancelled() method 2015-07-15 14:58:32 -07:00
David Garcia Quintas e0d581b6ad Merge branch 'master' of github.com:grpc/grpc into decompression
# Conflicts:
#	Makefile
#	include/grpc++/client_context.h
#	include/grpc++/server_context.h
#	src/cpp/client/client_context.cc
#	src/cpp/server/server_context.cc
#	vsprojects/Grpc.mak
2015-07-15 14:07:18 -07:00
Craig Tiller 3e5d61670e Merge pull request #2371 from yang-g/security_context2
remove dead file
2015-07-15 13:44:01 -07:00
yang-g 14b3684dee Remove const_iterator typedef and add a range based loop test 2015-07-15 13:20:23 -07:00
Vijay Pai 69f2410086 Make thread_pool.h a public header
Rename ThreadPool -> FixedSizeThreadPool to allow for later introduction
of DynamicSizeThreadPool
2015-07-15 12:33:37 -07:00
yang-g 811536efce auth context iterator 2015-07-15 00:55:30 -07:00
yang-g 94d6225ae7 Create server side auth context lazily 2015-07-14 14:25:37 -07:00
Craig Tiller 677c50c92a Update C++ impl 2015-07-13 10:49:06 -07:00
Craig Tiller 354398f9f5 Updating wrapped languages to new time functions 2015-07-13 09:16:03 -07:00
Craig Tiller 143e7bf0cf Introduce a clock type field onto gpr_timespec.
Use it to validate that arithmetic on time types makes even some vague
kind of sense.
2015-07-13 08:41:49 -07:00
yang-g d45b203163 remove dead file 2015-07-10 10:40:06 -07:00
David Garcia Quintas 14ce90ff82 Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-09 16:18:14 -07:00
yang-g d53bc8925b Add missing pieces 2015-07-09 12:56:29 -07:00
yang-g 3315a845ef Merge remote-tracking branch 'upstream/master' into security_context2 2015-07-09 12:32:48 -07:00
yang-g f9e8e59b1c Resolve comments 2015-07-09 12:32:15 -07:00
Yang Gao ec5a0ba6ba Merge pull request #2271 from jboeuf/oauth2_access_token
Adding support for raw access token credentials.
2015-07-08 21:48:46 -07:00
Julien Boeuf a6b9a891a0 Merge branch 'master' of github.com:grpc/grpc into oauth2_access_token 2015-07-08 20:40:13 -07:00
David Garcia Quintas 17bb64981a Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-08 15:17:10 -07:00
Craig Tiller 98d60fcb9a Merge github.com:grpc/grpc into hosts-need-names-too 2015-07-08 07:44:54 -07:00
yang-g ab575d46f7 merge head and resolve conflict 2015-07-07 23:33:40 -07:00
yang-g 6406f18267 missed one place 2015-07-07 23:28:30 -07:00
yang-g 85c04f938f resolve comments 2015-07-07 17:47:31 -07:00
Craig Tiller d9b6fcfee4 Support older compilers 2015-07-07 16:28:20 -07:00
Craig Tiller 822d2c7beb Support registering services against specific hosts 2015-07-07 16:08:00 -07:00
yang-g 8068f86974 Add a unit test 2015-07-06 15:05:48 -07:00
yang-g 5ea46ab248 merge with upstream and resolve conflicts 2015-07-06 14:05:54 -07:00
yang-g 3abe60b9d0 compiles 2015-07-06 14:00:36 -07:00
David Garcia Quintas 8a187099ec Merge branch 'master' of github.com:grpc/grpc into decompression
# Conflicts:
#	Makefile
#	gRPC.podspec
#	src/core/surface/call.c
#	src/core/transport/chttp2/frame_data.c
#	tools/doxygen/Doxyfile.core.internal
#	vsprojects/Grpc.mak
2015-07-01 14:52:44 -07:00
Julien Boeuf 2805be1aa5 Adding support for raw access token credentials. 2015-07-01 02:47:18 -07:00
David Garcia Quintas d7d9ce27c5 WIP in *_end2end_test.cc. Tests pass. Fixed leaks and introduced concept of compression request thru MD 2015-06-30 23:29:03 -07:00
Alistair Veitch fc62dddd1c add client side census context 2015-06-29 02:52:46 -07:00
Craig Tiller f75fc12e3a Add a test that headers are properly in build.json
Clean up anything that failed
2015-06-25 06:58:00 -07:00
yang-g a58cab30b2 release memory even if the status is false 2015-06-23 14:37:15 -07:00
yang-g 3deb0069f4 Only copy stuff when status is ok 2015-06-23 14:06:08 -07:00
yang-g adfed03146 Add missing headers to build.json 2015-06-23 13:01:22 -07:00
Yang Gao 253aaa6b10 Merge pull request #1969 from ctiller/one-shouldnt-depend-on-protobufs
Remove Protobuf dependency for C++
2015-06-23 10:05:20 -07:00
Yang Gao 89c5a56233 Add const to ByteBuffer methods and add tests 2015-06-22 16:31:11 -07:00
Craig Tiller 026e600b5b Update to set flags=0 on all ops 2015-06-22 11:41:14 -07:00
Craig Tiller 3de4b47e2b Merge github.com:grpc/grpc into one-shouldnt-depend-on-protobufs 2015-06-22 10:51:35 -07:00
Craig Tiller ab67485ff0 Merge github.com:grpc/grpc into one-shouldnt-depend-on-protobufs 2015-06-19 15:32:52 -07:00
Vijay Pai d03adc340a Merge remote-tracking branch 'ctiller-repo/we-dont-need-no-backup' into poller2 2015-06-18 08:42:29 -07:00
Craig Tiller 4ec433741a Merge pull request #2071 from dgquintas/compression-levels
Introduced compression levels as an abstraction for the actual algorithm
2015-06-17 17:21:09 -07:00
Vijay Pai ced73bde96 Split cq creation from request initiation so that cq creation
can be removed from C++ lock.
2015-06-17 10:23:28 -07:00
Craig Tiller 2622ddbcfd Merge branch 'we-dont-need-no-backup' into one-shouldnt-depend-on-protobufs
Conflicts:
	include/grpc++/async_unary_call.h
	include/grpc++/config.h
	include/grpc++/config_protobuf.h
	include/grpc++/impl/service_type.h
	include/grpc++/stream.h
	src/cpp/common/call.cc
2015-06-16 17:30:26 -07:00
Craig Tiller 48dd6bfb53 Merge github.com:grpc/grpc into you-complete-me 2015-06-16 17:18:34 -07:00
Craig Tiller ddd389a149 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-16 17:14:43 -07:00
Nicolas Noble 32f020ae2a Merge pull request #2079 from yang-g/statusChange
Update the Status API
2015-06-16 13:12:33 -07:00
David Garcia Quintas cc6c43c496 Exposed compression level in channel arguments (C and C++) 2015-06-16 11:35:41 -07:00
Yang Gao c1a2c314fb Update the Status API 2015-06-16 10:59:46 -07:00
David Garcia Quintas de52625ae5 Added changes to c++ and ruby wrappers 2015-06-15 13:15:26 -07:00
Jan Tattermusch 9bfedd67e0 Merge remote-tracking branch 'upstream/master' into you-complete-me-csharp 2015-06-09 17:47:56 -07:00
David Garcia Quintas ca281377c0 Added missing compression.h file. 2015-06-08 20:11:30 -07:00
David Garcia Quintas 59f905d79a Changes to byte_buffer based on comments. 2015-06-08 20:06:17 -07:00
Vijay Pai 372fd8791b Revert "Revert "Open loop sync/async multithreaded testing"" 2015-06-08 13:30:08 -07:00
Craig Tiller d55636d813 Revert "Open loop sync/async multithreaded testing" 2015-06-08 10:12:46 -07:00
Craig Tiller e22fb4e3e5 Merge branch 'one-shouldnt-depend-on-protobufs' of github.com:ctiller/grpc into one-shouldnt-depend-on-protobufs 2015-06-05 10:43:57 -07:00
Craig Tiller bd277cb3cb Clarify serialization traits interface 2015-06-05 10:43:43 -07:00
Craig Tiller 2f4a49c8d3 Fix memory leak 2015-06-05 09:36:52 -07:00
Craig Tiller 928ec8ee51 Fix memory leak 2015-06-05 08:45:45 -07:00
Craig Tiller 3cb03ef0c8 Remove old code 2015-06-05 08:09:41 -07:00
Craig Tiller 5095581cdb Get server call tags right 2015-06-05 08:03:17 -07:00
Craig Tiller cad36b0831 Remove old code 2015-06-05 07:38:47 -07:00
Craig Tiller ce40de58da clang-format 2015-06-05 07:14:58 -07:00
Vijay Pai cf3fb092cc clang-format 2015-06-05 03:41:30 -07:00
Craig Tiller 7bc97bc6de Everything compiles again 2015-06-04 17:22:54 -07:00
Craig Tiller 789471cfc6 Client side compiles/links 2015-06-04 16:19:22 -07:00
Craig Tiller 50a7a68ca2 Progress commit on fixing up C++ 2015-06-04 12:53:40 -07:00
vjpai ca61f5b765 Merge branch 'master' into poisson 2015-06-04 09:51:28 -07:00
Craig Tiller a6ab47c75b Merge branch 'we-dont-need-no-backup' into one-shouldnt-depend-on-protobufs 2015-06-04 08:52:33 -07:00
Craig Tiller 81fafa8971 Beginning the cleanup 2015-06-04 08:51:17 -07:00
Craig Tiller 409263c59f Merge github.com:grpc/grpc into we-dont-need-no-backup
Conflicts:
	tools/doxygen/Doxyfile.core.internal
2015-06-04 08:44:53 -07:00
Craig Tiller 7b6e979f46 Merge github.com:grpc/grpc into you-complete-me 2015-06-04 08:43:47 -07:00
Yang Gao 6f4fb3b133 Add ability to override default thread pool 2015-06-03 12:56:19 -07:00
Vijay Pai 9dc5c15b56 Account for time difference in mac and linux 2015-06-03 11:34:53 -07:00
vjpai afc3ee89ee Merge branch 'master' into poisson 2015-06-03 10:13:48 -07:00
Craig Tiller 669c139a4a Merge pull request #1866 from dgquintas/stack-allocate-bb-reader
Removed grpc_byte_buffer_reader_{create,destroy}.
2015-06-02 16:59:00 -07:00
Craig Tiller a4b89fed1c Merge github.com:grpc/grpc into you-complete-me
Conflicts:
	src/core/iomgr/resolve_address_posix.c
	src/core/surface/server.c
2015-06-02 16:55:54 -07:00
vjpai 3beb20c3e2 Support use of high_res clock in timepoints 2015-06-02 13:58:44 -07:00
David Garcia Quintas 30bd4eb5cc Removed grpc_byte_buffer_reader_{create,destroy}.
Introduced grpc_byte_buffer_init instead. It's now the user's responsibility to
manage memory.
2015-06-01 21:20:47 -07:00
Craig Tiller 14556ecf8c Merge branch 'count-the-things' into we-dont-need-no-backup
Conflicts:
	Makefile
	src/core/iomgr/pollset_posix.c
	src/core/surface/call.c
	src/core/surface/channel.c
	src/core/surface/server.c
	src/python/src/grpc/_adapter/_low_test.py
	tools/doxygen/Doxyfile.core.internal
2015-06-01 20:31:27 -07:00
Yang Gao 69fe0759be Various minor fixes 2015-06-01 14:32:38 -07:00
Craig Tiller aaa03d74ce Merge github.com:grpc/grpc into you-complete-me 2015-06-01 08:48:45 -07:00
Craig Tiller 131b3ed3cb Merge branch 'demon-on-wheels' into we-dont-need-no-cv 2015-05-29 07:56:00 -07:00
Yang Gao 7b49a7737c Leak fix, the metadata array should be destroyed on the server SyncRequest 2015-05-28 14:07:54 -07:00
Craig Tiller 29f79dcb08 Make C/C++ tests pass 2015-05-27 15:59:23 -07:00
Craig Tiller bce999f57f Refine shutdown API 2015-05-27 09:55:51 -07:00
Craig Tiller 4f8b679a49 Merge github.com:grpc/grpc into mmm-mmm-mmm-mmm
Conflicts:
	Makefile
	build.json
2015-05-19 09:13:35 -07:00
Craig Tiller dd093f33f6 Remove some bad asserts 2015-05-15 16:29:58 -07:00
Yang Gao 280ca17d79 resolve comments 2015-05-15 10:25:10 -07:00
Yang Gao a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
Craig Tiller 54478f8562 Merge github.com:grpc/grpc into bye-bye-completion-queue-pie 2015-05-12 14:08:56 -07:00
Craig Tiller cc82be534e Merge github.com:grpc/grpc into bye-bye-completion-queue-pie 2015-05-08 08:38:53 -07:00
Craig Tiller a33acb7021 Correct C++ build errors 2015-05-08 08:02:55 -07:00
Craig Tiller fee0cfa0d5 Merge github.com:grpc/grpc into churn-churn-churn-the-api-gently-down-the-stream
Conflicts:
	src/cpp/server/server.cc
2015-05-08 07:46:46 -07:00
Yang Gao b8a5f866f2 do not request another call if server is shutdown 2015-05-07 16:26:33 -07:00
Craig Tiller f9e6adf998 Completion queue binding for new requests API change
Move completion queue binding for new requests to the new request
request time, not server instantiation time.
2015-05-06 11:45:59 -07:00
Craig Tiller 5fdcbb7fbe Merge github.com:grpc/grpc into bye-bye-completion-queue-pie 2015-05-05 08:44:47 -07:00
Craig Tiller 64be9f7a30 C Core API cleanup.
Simplify grpc_event into something that can be non-heap allocated.
Deprecate grpc_event_finish.
Remove grpc_op_error - use an int as this is more idiomatic C style.
2015-05-04 14:53:51 -07:00
Yang Gao c71a9d2b56 clang-format 2015-05-04 00:22:12 -07:00
Yang Gao f7d05b572b make server tolerate deserialization failure 2015-05-04 00:14:02 -07:00
Yang Gao ea13af73e0 merge with head 2015-05-01 11:34:45 -07:00
Yang Gao 87344c88d5 Merge pull request #1397 from ctiller/delete-the-old-api
Delete the old api
2015-05-01 11:23:26 -07:00
Yang Gao 3921c56bee Expose max message size at the server side 2015-04-30 16:07:06 -07:00
Craig Tiller f96dbc784d Fix for a crash seen in the wild 2015-04-30 14:20:01 -07:00
Craig Tiller 12608921f6 Merge branch 'delete-the-old-api' of github.com:ctiller/grpc into delete-the-old-api 2015-04-30 13:49:18 -07:00
Craig Tiller 76dcd38332 Hack to get Mac end2end test working 2015-04-29 16:42:11 -07:00
David Garcia Quintas bbc0b775e1 Merge comments. See below.
- Added ptag ignore annotation threshold
- prefixed everythig with grpc_
- removed spurious annotations in channel_create.c and client_channel.c
- removed stap_probes.h (it's generated from stap_probes.d by make)
- Updated Makefile and its template with the right way to generate stap
  probe headers from its .d definition.
2015-04-29 14:10:05 -07:00
David Garcia Quintas 45d54e4581 Merge remote-tracking branch 'upstream/master' into stap 2015-04-29 09:48:43 -07:00
David Garcia Quintas 8954e90b72 Integration of Systemtap (STAP) for profiling.
This commit includes a faulty Makefile to be fixed in a follow commit.
2015-04-29 09:46:33 -07:00
Yang Gao 6eda2d7c8e Merge pull request #1386 from ctiller/cxx
Mac C++ compile fix
2015-04-28 17:07:35 -07:00
Craig Tiller c9fd80e6e5 Merge github.com:grpc/grpc into one-pass 2015-04-28 07:43:25 -07:00
Craig Tiller a3c42cdcaf Merge pull request #1378 from nicolasnoble/vs2010
Few VS2010 fixes.
2015-04-28 07:40:40 -07:00
Craig Tiller b11728b90d Mac C++ compile fix 2015-04-27 18:27:41 -07:00
Craig Tiller 00e5b2a82c Mac C++ compile fix 2015-04-27 18:27:04 -07:00
Nicolas Noble 3086203834 Few VS2010 fixes.
-) = delete isn't supported. Moving destructor out of scope.
-) variadic templates aren't supported. Replacing emplace_back's construction.
-) C++11's {} inline construction isn't supported. Adding temporary variables.
-) std::list<> can't work on a non-declared class. Changing to a raw pointer.
2015-04-28 00:27:30 +02:00
Craig Tiller 1fb99552b7 Fix early shutdown: await client context deletion before channel deletion 2015-04-27 08:55:50 -07:00
Craig Tiller a2b32f1133 Fix early shutdown: await client context deletion before channel deletion 2015-04-27 08:55:08 -07:00
Craig Tiller 7305dc69e6 Merge pull request #1227 from nicolasnoble/the-purge-2
Refactoring std::chrono out.
2015-04-24 17:57:49 -07:00
Yang Gao fa74ec4617 Merge pull request #1359 from a11r/cc2
Test client stream cancellation and fix bug exposed by the test.
2015-04-24 15:16:51 -07:00
Nicolas "Pixel" Noble fd2bf675f7 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	include/grpc++/completion_queue.h
2015-04-24 23:24:44 +02:00
Yang Gao c4b6ffb1b6 Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00
Nicolas "Pixel" Noble e24dde5736 Adressing comments. 2015-04-24 00:52:57 +02:00
Nicolas "Pixel" Noble 23be280366 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	src/cpp/client/channel.cc
	vsprojects/vs2010/grpc++.vcxproj
	vsprojects/vs2013/grpc++.vcxproj.filters
2015-04-24 00:38:19 +02:00
Abhishek Kumar d774c5cadb Test client stream cancellation and fix bug exposed by the test. 2015-04-23 14:59:49 -07:00
Yang Gao 3b3097fb7a Remove an extra unref 2015-04-21 11:47:45 -07:00
Craig Tiller 277d3cff7e clang-format 2015-04-16 09:30:01 -07:00
Craig Tiller 15f9f95312 Use channel tags to call methods 2015-04-16 09:29:17 -07:00
Craig Tiller 3beef68d39 Populate channel tags for methods 2015-04-16 09:29:17 -07:00
Craig Tiller 62d2896665 Add facility to register methods in C++ 2015-04-16 09:29:17 -07:00
Craig Tiller 53a38d4699 Make RpcMethod constructor take all args 2015-04-16 09:29:17 -07:00
Vijay Pai 7b3aba5e27 Fix some name choices 2015-04-15 10:48:31 -07:00
Vijay Pai 0163460bd6 Mark creation of call, performing ops on channel 2015-04-15 02:09:52 -07:00
Vijay Pai fad38ba430 Add client-side marks for proto processing.
Need to go in and fill in tag later
2015-04-15 01:06:58 -07:00
Vijay Pai 9ffbd0ca4d Mark proto ser/deser on server side 2015-04-15 01:02:50 -07:00
Nicolas "Pixel" Noble b7c2035e83 Merge branch 'master' of https://github.com/grpc/grpc into the-purge-2
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
	test/cpp/interop/client.cc
2015-04-11 01:53:09 +02:00
Julien Boeuf fce25eee5d Addressing comments. 2015-04-10 08:44:20 -07:00
Julien Boeuf 1d2240cc6c Have the secure credentials in separate header files. 2015-04-09 21:07:56 -07:00