Commit Graph

1240 Commits

Author SHA1 Message Date
vjpai 7d980e44b2 Remove lambda function with lambda capture to allow building with pre-lambda
compilers
2015-07-14 10:38:30 -07:00
David Garcia Quintas 664cda0ef5 Removed spurious check 2015-07-14 09:03:54 -07:00
David Garcia Quintas 8d9f830168 Introduced InteropContextInspector to be able to peek into server contexts during interop testing. 2015-07-13 16:18:19 -07:00
David Garcia Quintas 6a3cf974f7 Added WriteOptions for per-message flags and modified CallOps to use it. 2015-07-13 13:38:18 -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
David Garcia Quintas 14ce90ff82 Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-09 16:18:14 -07:00
yang-g 3315a845ef Merge remote-tracking branch 'upstream/master' into security_context2 2015-07-09 12:32:48 -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 b09caa967d Remove extraneous explicit 2015-07-08 07:53:47 -07:00
Craig Tiller 2ee8f0b978 Update comments 2015-07-08 07:53:20 -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 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 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
Alistair Veitch e2aa487936 review changes 2015-07-01 02:00:32 -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
Nicolas "Pixel" Noble d8c04b3603 std::function is no longer implicitly included. Fixing this. 2015-06-24 02:33:08 +02: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 e9fad15b0b Remove redundant decls 2015-06-22 10:49:02 -07:00
Craig Tiller ab67485ff0 Merge github.com:grpc/grpc into one-shouldnt-depend-on-protobufs 2015-06-19 15:32:52 -07:00
Julien Boeuf a96ba40f0d Base definition of the C++ auth context API. 2015-06-18 03:07:33 -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
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
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
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 90ed038999 .clang-format 2015-06-05 10:56:47 -07:00
Craig Tiller fcff618e6f Clarify some of the call stuff 2015-06-05 10:56:10 -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 8f789fd4b9 Reset on finalization so op objects can be reused 2015-06-05 08:27:00 -07:00
Craig Tiller 5095581cdb Get server call tags right 2015-06-05 08:03:17 -07:00
Craig Tiller e8200ba046 Fix GCC compilation 2015-06-05 07:59:33 -07:00
Craig Tiller e6ee9b403c Hide some unnecessary information 2015-06-05 07:57:06 -07:00
Craig Tiller 4beef42264 Clarify ownership 2015-06-05 07:48:27 -07:00
Craig Tiller b73856916a Remove old code, simplify a little 2015-06-05 07:40:03 -07:00
Craig Tiller 44290f1b6f Add necessary include 2015-06-05 07:22:57 -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
Craig Tiller 81fafa8971 Beginning the cleanup 2015-06-04 08:51:17 -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 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
Craig Tiller 8cc6f42287 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-02 16:28:36 -07:00
vjpai 3beb20c3e2 Support use of high_res clock in timepoints 2015-06-02 13:58:44 -07:00
David Garcia Quintas c9516d4e28 Fixed memory leak in server_async 2015-06-02 13:41:48 -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 bce999f57f Refine shutdown API 2015-05-27 09:55:51 -07:00
Craig Tiller da0b312c7f Merge github.com:grpc/grpc into mmm-mmm-mmm-mmm 2015-05-21 16:48:18 -07:00
vjpai 178a551b5d nullptr->shared_ptr conversion 2015-05-21 14:32:10 -04: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 a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
Yang Gao a468c36601 Merge pull request #1493 from ctiller/churn-churn-churn-the-api-gently-down-the-stream
Completion queue binding for new requests API change
2015-05-12 12:37:24 -07:00
Craig Tiller 5f871ac225 Merge github.com:grpc/grpc into the-churnening 2015-05-08 13:05:51 -07:00
Craig Tiller 2be6095c10 Merge github.com:grpc/grpc into churn-churn-churn-the-api-gently-down-the-stream 2015-05-08 08:37:41 -07:00
Craig Tiller 3676b38183 Lose redundant tag on unary calls 2015-05-06 13:01:05 -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
Yang Gao 691ff71da5 Merge remote-tracking branch 'upstream/master' into mock 2015-05-05 13:31:40 -07:00
Yang Gao 4273f1e3bc add client side streaming interfaces 2015-05-04 14:51:27 -07:00
Yang Gao 3921c56bee Expose max message size at the server side 2015-04-30 16:07:06 -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 3691c3322d clang-format 2015-04-28 08:01:45 -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 75d5d303ea Indentation fix 2015-04-27 18:29:09 -07:00
Craig Tiller b11728b90d Mac C++ compile fix 2015-04-27 18:27:41 -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 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 76e49fd805 Forgot to rename header guard. 2015-04-24 01:12:18 +02: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
Craig Tiller 277d3cff7e clang-format 2015-04-16 09:30:01 -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
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
Nicolas "Pixel" Noble b7bbffe9f6 Addressing github comments. 2015-04-11 01:24:26 +02:00
Nicolas Noble 89219162dd Refactoring std::chrono out. 2015-04-08 05:42:08 +02:00
Nicolas "Pixel" Noble b092916a2a Addressing concerns. 2015-04-07 02:13:22 +02:00
Nicolas "Pixel" Noble ff2828be3d Rewriting mutex, condition_variable, and thread. 2015-04-04 02:06:13 +02:00
Nicolas "Pixel" Noble ae96ae2bad Starting off by removing all offending headers. 2015-04-03 00:29:15 +02:00
Yang Gao e9866e977e resolve comment 2015-04-02 10:27:50 -07:00
Yang Gao b53af532af Bug fix. User can destroy status after calling Finish and we should keep a copy of it instead of a pointer 2015-04-02 09:24:39 -07:00
Yang Gao 48bbd000eb merge upstream and resolve conflict 2015-03-26 23:12:14 -07:00
vjpai f731d68fef Avoid a problem when clang pretends to be GNUC 2015-03-25 14:55:25 -07:00
vjpai 3ff350cf96 Make a fake version of nullptr to work with old compilers 2015-03-25 14:28:41 -07:00
Vijay Pai 8dafd52cea Revert "Remove dead members of server context"
This reverts commit 8c8588c7dc.
2015-03-24 11:36:17 -07:00
Vijay Pai 046d92dcb0 Merge remote-tracking branch 'upstream/master' 2015-03-23 10:26:50 -07:00
Vijay Pai 8c8588c7dc Remove dead members of server context 2015-03-22 12:39:10 -07:00
Yang Gao b7b965c842 Make Next free of time_point to timespec conversion 2015-03-20 15:27:51 -07:00
Jan Tattermusch 5e36d0d474 Merge pull request #1093 from nicolasnoble/windows
Various Windows fixes.
2015-03-19 10:29:47 -07:00
Yang Gao d1b9e64b2d Merge branch 'master' into genericstub 2015-03-19 09:38:28 -07:00
Yang Gao 050e37aab8 resolve merge error 2015-03-19 07:27:28 -07:00
Yang Gao 1fc046902c sync to head and run clang-format again 2015-03-19 07:23:08 -07:00
Yang Gao 75e2f6d839 Implementation of generic stub 2015-03-19 07:04:38 -07:00
Nicolas "Pixel" Noble eab96f51fb Dodging VisualStudio's #define of max(). 2015-03-19 06:41:10 +01:00
Nicolas Noble cfd6073a66 Various Windows fixes.
-) using dupenv_s instead of getenv_s and calling strdup ourselves.
-) few impossible-to-obtain if checks.
-) various signed/unsigned casting.
-) using time_t instead of time32_t
-) checking output of FormatMessage for failures.
-) don't redefine _WIN32_WINNT without undefining it first.
-) fixed msvc's interlocked casting.
-) renamed AddPort to AddListeningPort.
-) added protobuf's third_party includes to search path.
-) added a missing definition for inet_ntop in mingw32.
-) removed useless declarations.
2015-03-19 04:21:22 +01:00
jboeuf a8edeae6c0 Merge pull request #1072 from yang-g/refreshtoken
wrap refresh token credentials in c++
2015-03-18 09:53:09 -07:00
Yang Gao 5ebd6c76a2 wrap refresh token credentials in c++ 2015-03-17 16:22:32 -07:00
Yang Gao 757afaeb30 clang-format new changes 2015-03-17 15:49:26 -07:00
Yang Gao d672d8fbe2 resolve merge confict 2015-03-17 15:47:47 -07:00
Yang Gao 700bdeb6f5 Merge pull request #1023 from vjpai/async
Non-blocking Next method for C++ async completion queue
2015-03-17 15:45:33 -07:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
vjpai 7aadf46fdb Change to std::chrono and add a test. 2015-03-17 00:39:18 -07:00
Yang Gao 1ad253d137 expose the server's cq through the generic service object 2015-03-16 13:11:29 -07:00
Yang Gao 5333c5a261 Merge branch 'master' into untypedAPI 2015-03-16 11:39:14 -07:00
jboeuf c91a9f942e Merge pull request #1011 from yang-g/jwt
Put back C++ JWTCredentials code and add a test case in interop test.
2015-03-16 10:04:08 -07:00
Yang Gao dca15a6d1e add a comment 2015-03-13 15:54:38 -07:00
Nicolas "Pixel" Noble 764971354c Allowing us to import google::protobuf::int64.
If for any reason, our definition of gpr_int64 is different from the definition of google::protobuf::int64, the virtual override would fail, as this needs to be of the precisely exactly the same type.
That change allows us to use protobuf's int64 definition.
2015-03-13 23:26:08 +01:00
Nicolas "Pixel" Noble 613d6fe997 Moving ZeroCopyOutputStream to grpc++/config.h. 2015-03-13 18:36:39 +01:00
Yang Gao 4999649653 Rename to AsyncGeneric* 2015-03-12 16:40:19 -07:00
Yang Gao 179f8684dc add missing GRPC_FINAL 2015-03-12 14:36:58 -07:00
Vijay Pai c41bf3cb5a More sane ordering of methods 2015-03-12 05:19:34 -07:00
Vijay Pai 3e0a46a1c4 Change behavior to properly account for possibility of NULL
tag. This can happen if the tag is actually an integer being
typecast to void*

To avoid breaking the API of existing Next calls, I've made
a new AsyncNext method with a tri-state return that indicates
whether there is a shutdown, an actual event, or a timeout.

Still needs proper testing for the AsyncNext method specifically.
2015-03-12 05:16:31 -07:00
Yang Gao 005eb88c45 Rename anonymous to generic globally 2015-03-11 22:17:13 -07:00
Vijay Pai ee705f6d66 Add support for deadline on CompletionQueue::Next
If the deadline elapses, return true but have a null tag.
2015-03-11 15:52:43 -07:00
Yang Gao d778651c01 formatting 2015-03-11 14:55:02 -07:00
Yang Gao 0535da3068 The Jwt code was dropped somewhere in a merge. Put it back 2015-03-11 14:51:03 -07:00
Yang Gao 2fe6ecebee Merge branch 'master' into untypedAPI 2015-03-11 14:30:35 -07:00
Yang Gao 0fd94409a0 Expose server cq for polling incoming anonymous rpcs 2015-03-11 00:10:10 -07:00
Yang Gao f82a30d90a Use ssl name override if it's in the channel argument 2015-03-10 14:17:33 -07:00
Yang Gao fccea1f70e merge with upstream and resolve conflict 2015-03-10 13:17:39 -07:00
Yang Gao 61c413182d initial imple of byte buffer and slice 2015-03-10 12:42:18 -07:00
Chilledheart 4be94b9541 Add missing GRPC_OVERRIDE, NFC
Testing asan configuration with the latest clang compiler fails due to
the warning `-Winconsistent-missing-override`. This patch fixes it.
2015-03-10 00:46:10 +08:00
Yang Gao 5f4539f4e8 Service side should be done, it builds and existing tests pass 2015-03-06 16:11:16 -08:00
Yang Gao 1c40233814 first sets of changes, it builds 2015-03-05 16:39:25 -08:00
Yang Gao c79a57c3a9 Merge branch 'master' into untypedAPI 2015-03-05 13:46:41 -08:00
Craig Tiller 346a08606a Merge github.com:grpc/grpc into credit 2015-03-04 14:10:56 -08:00
Yang Gao ee7ab3db2f Remove include google/protobuf/message.h as it should be covered in config.h 2015-03-04 09:08:28 -08:00
Craig Tiller e7460e87d3 Merge github.com:grpc/grpc into credit 2015-03-03 13:48:40 -08:00
Yang Gao 5b61d5194d formatting 2015-03-03 10:21:27 -08:00
Yang Gao 7694c35d5f Global replace google::protobuf::Message with grpc::protobuf::Message, all tests passed 2015-03-03 09:48:06 -08:00
Yang Gao 4e233a1a46 Add macros 2015-03-03 09:17:41 -08:00
Craig Tiller 01ea61e482 Merge github.com:grpc/grpc into credit
Conflicts:
	build.json
	src/cpp/client/credentials.cc
	vsprojects/vs2013/grpc.vcxproj
	vsprojects/vs2013/grpc.vcxproj.filters
	vsprojects/vs2013/grpc_shared.vcxproj
	vsprojects/vs2013/grpc_shared.vcxproj.filters
	vsprojects/vs2013/grpc_unsecure.vcxproj
	vsprojects/vs2013/grpc_unsecure.vcxproj.filters
2015-03-03 07:44:27 -08:00
Eric Anderson 5b53e35ba4 Remove HTTP mappings from status.h
The mappings are a combination of useless, inaccurate, and harmful.
Leave them out until they are helpful and correct.

Fundamental issues:
 - If in need of mappings, a user would need HTTP -> gRPC code mappings.
   But the docs don't provide that since the mappings are not 1:1.
 - There _is no_ gRPC -> HTTP code mapping taking place in gRPC. This
   may change in the future, but until then the docs are misleading.

But even given those were resolved, there are additional issues. Two
obvious examples:
 - 501 Not Implemented is refering to HTTP methods such as GET and POST
   not being implement. That should not be used for gRPC methods not
   found (UNIMPLEMENTED).
 - 404 Not Found is for when the resource is not found. In gRPC, the
   resource is the gRPC method, not the parameters (NOT_FOUND). If there
   is a REST conversion layer on top of gRPC, then 404 would be
   appropriate, but that just shows that the mapping can not be
   canonical.
2015-03-02 09:42:02 -08:00
Craig Tiller 61691f92c3 Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Craig Tiller cf133f41f8 Make it possible to compile with gcc4.6 2015-02-26 14:27:05 -08:00
Craig Tiller 5b73bb1142 Merge github.com:grpc/grpc into generic 2015-02-26 11:23:26 -08:00
Craig Tiller 7c0f33dea9 Merge github.com:grpc/grpc into credit 2015-02-24 17:02:07 -08:00
Craig Tiller 6e57b9edb1 Add Server.Wait 2015-02-24 15:46:22 -08:00
Craig Tiller db57c4f574 First pass user-facing anonymous stub&service API 2015-02-24 10:34:47 -08:00
Craig Tiller b9d91eb454 Merge github.com:google/grpc into deprecate-c++
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
2015-02-23 17:13:40 -08:00
Craig Tiller e8eb8a4fd4 Merge github.com:grpc/grpc into credit 2015-02-23 14:56:42 -08:00
Craig Tiller e4fe844b67 s/CreateChannel/CreateChannelDeprecated
For the 2-argument version of CreateChannel.

This is a temporary step until #711 is ready to roll out.
2015-02-23 13:55:15 -08:00
Julien Boeuf c66f2a816e Addressing iniitial feedback.
- Renaming default credentials -> google default credentials.
- Various other things in cpp:
  - Adding Cpp wrapping for JWT Tokens.
  - Renaming ComposeCredentials -> CompositeCredentials.
2015-02-23 13:00:36 -08:00
Craig Tiller ad9d0c472d Remove dynamic_cast 2015-02-23 10:53:01 -08:00
Craig Tiller 42bc87c097 Update C++ server with new core API
And reflects the C++ API in ServerBuilder.
2015-02-23 09:58:23 -08:00
Craig Tiller 47c83fdaf7 Credentials prototyping
- Remove CredentialsFactory as it's unnecessary
- Effectively make Credentials a channel factory, allowing different credential types to create different channel types - this gives us a hook so that InsecureCredentials can at runtime instantiate a different kind of channel as required - giving us a way of generating an openssl free version of grpc++.
- Server credentials not touched yet, but they'll need to be updated.
2015-02-23 09:58:22 -08:00
Craig Tiller 2627e4e0a9 Merge with async unary changes 2015-02-18 15:54:14 -08:00
Craig Tiller 2d11c93ab5 Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 15:51:50 -08:00
Craig Tiller d24d13d6eb Simplify TryPluck 2015-02-18 15:35:32 -08:00
Craig Tiller c7625b0e5f Move header #include 2015-02-18 15:18:58 -08:00
Craig Tiller 8a287d1a1b Merge pull request #588 from yang-g/c++api
Async client api change. Add a ClientAsyncResponseReader.
2015-02-18 14:50:14 -08:00
Yang Gao 68bc778b63 2015 2015-02-18 14:41:40 -08:00
Yang Gao 3a5e5495e5 Async client api change. Add a ClientAsyncResponseReader. Make the api similar to streaming and symmetric to server side. 2015-02-18 14:32:38 -08:00
Craig Tiller f01ea7cee8 Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 13:21:02 -08:00
Craig Tiller 7326901767 Merge pull request #579 from yang-g/c++api
change metadata getters to return const&
2015-02-18 13:18:53 -08:00
Craig Tiller eaaee49f9b Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 13:14:15 -08:00
Craig Tiller 492968f7d9 Server side cancellation receive support 2015-02-18 13:14:03 -08:00
Yang Gao d0d007e6d1 change metadata getters to return const& 2015-02-18 10:28:09 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 645466e089 Initial sketch 2015-02-18 09:18:33 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Craig Tiller 6d5f42e79a Fix copyright notice 2015-02-18 08:31:24 -08:00
Yang Gao 2b7f537546 Add metadata test with rpc. Adding/fixing things to make it work 2015-02-18 00:45:53 -08:00
Craig Tiller ab294db744 Add some comments 2015-02-17 15:00:19 -08:00
Yang Gao f2c0ca4c62 Add setter to override authority header on ClientContext 2015-02-17 10:21:31 -08:00
Craig Tiller 573523f127 clang-format 2015-02-17 07:38:26 -08:00
Craig Tiller 771fefb41b Merge pull request #18 from yang-g/c++api
Add missing APIs and a first metadata test, and test passes
2015-02-13 16:30:49 -08:00
Yang Gao 406b32f663 Add missing APIs and a first metadata test, and test passes 2015-02-13 16:25:33 -08:00
Craig Tiller 8c22f05f21 Minor compile fix 2015-02-13 15:11:57 -08:00
Yang Gao 005f18a6a1 change ServerAsyncReader API and add a simple clientstreaming test, it passes 2015-02-13 10:22:33 -08:00
Yang Gao 0c7aafaa0c change AddRecvMessage signature 2015-02-12 22:51:38 -08:00
Yang Gao c17e861aa0 more nullptr for got_message 2015-02-12 22:22:23 -08:00
Craig Tiller 0220cf14b0 Add end2end async unary single threaded test (compiles) 2015-02-12 17:39:26 -08:00
Craig Tiller c645306b64 Fixes 2015-02-12 17:32:57 -08:00
Yang Gao 31150f01db implement async unary call 2015-02-12 16:44:00 -08:00
Yang Gao 555a0e9e77 Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-12 16:12:36 -08:00
Yang Gao cbcc977857 fix sync unary call with metadata pieces 2015-02-12 16:09:08 -08:00
Craig Tiller ec3257c120 Fix end2end leaks 2015-02-12 15:59:43 -08:00
Craig Tiller 3d20c5e8c6 Merge pull request #13 from yang-g/c++api
Make codegen generate async client calls
2015-02-12 15:25:53 -08:00
Yang Gao 068c85b21c make codegen generate async client calls 2015-02-12 15:21:24 -08:00
Craig Tiller d4ebeeb7fb Async server streaming 2015-02-12 14:57:17 -08:00
Craig Tiller 3d6ceb6461 Async server dispatch 2015-02-12 14:33:54 -08:00
Yang Gao 5705fe3fca Add a cq argument in ClientAsync ctor and give it to the Call 2015-02-12 14:30:34 -08:00
Craig Tiller 984b09087f Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-12 14:11:25 -08:00
Craig Tiller 1c9a2a91ca Async API progress 2015-02-12 14:10:25 -08:00
Yang Gao 0b18a8bd4c typo fix 2015-02-12 13:37:33 -08:00
Yang Gao 106906924f implement ServerAsyncResponseWriter for unary call 2015-02-12 13:27:14 -08:00
Yang Gao 9a2743a897 Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-12 12:05:47 -08:00
Yang Gao a38feb9be7 Implement async streaming APIs 2015-02-12 12:05:20 -08:00
Craig Tiller 8c8d0aa1d8 Async API progress 2015-02-12 11:38:36 -08:00
Yang Gao 424bc92e37 implement ClientAsyncX api 2015-02-12 10:24:39 -08:00
Yang Gao ea222b2001 resolve comments, the context_ member needs protection for thread safety 2015-02-12 09:38:51 -08:00
Yang Gao 3ccdbe9bcc Make SendInitialMetadata work. 2015-02-11 23:56:30 -08:00
Yang Gao b492f06c9d Add SendInitialMetadata() to server streaming interfaces 2015-02-11 23:43:20 -08:00
Yang Gao fd7199f64e Add client side WaitForInitialMetadata for streaming. 2015-02-11 23:14:49 -08:00
Craig Tiller a847a8f8bc Finish streaming, lame client 2015-02-11 21:20:25 -08:00
Craig Tiller 0156752a66 Some streaming progress 2015-02-11 21:08:49 -08:00
Craig Tiller 504bd331ab Make sure we get a close before stopping the server 2015-02-11 20:34:33 -08:00
Craig Tiller 39550b6c4c Merge pull request #9 from yang-g/c++api
Add trailing metadata to client context and use it.
2015-02-11 16:50:09 -08:00
Craig Tiller 47a573602a Fix ownership 2015-02-11 16:31:45 -08:00
Yang Gao 968ca530b2 Add trailing metadata to client context and use it. 2015-02-11 16:23:47 -08:00
Craig Tiller 9dcb0f8e1d Send initial metadata 2015-02-11 15:36:31 -08:00
Yang Gao 2382293226 Make it compile 2015-02-11 13:59:25 -08:00
Yang Gao 1464bc175d resolve conflict 2015-02-11 13:48:28 -08:00
Yang Gao f1258c4951 save before the change 2015-02-11 13:44:11 -08:00
Craig Tiller bb5227fc39 Allow server to hook calls also, fix crash 2015-02-11 13:34:48 -08:00
Craig Tiller a5c0e7bc46 Initial metadata fix 2015-02-11 13:14:49 -08:00
Craig Tiller 3b29b566a2 Just use one completion queue per server for delivering completions
This simplifies (drastically) the polling story, although will slightly
complicate mixing sync & async servers - but we're not there yet.
2015-02-11 12:58:46 -08:00
Yang Gao a5e2a03fec Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-11 11:45:33 -08:00
Yang Gao 99b07d1ea7 fix conflict 2015-02-11 11:45:22 -08:00
Craig Tiller 854a30c73a More implementation 2015-02-11 11:44:10 -08:00
Yang Gao eb8e7cd922 Implement FinalizeResult 2015-02-11 11:43:40 -08:00
Craig Tiller 04c8ff0245 Fix FinalizeResult signature 2015-02-11 11:01:07 -08:00
Craig Tiller b84aab7922 Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-11 10:51:23 -08:00
Craig Tiller c416577636 Server progress 2015-02-11 10:51:04 -08:00
Yang Gao 6d6b90376b Release write buffer in FinalizeResult 2015-02-11 10:19:20 -08:00
Craig Tiller 1e67aeed22 Merge pull request #5 from yang-g/c++api
Implement FillOps
2015-02-11 07:51:45 -08:00
Yang Gao d5a04bdc6e Implement FillOps 2015-02-11 00:04:32 -08:00
Craig Tiller cbd0485088 Simplify server ready for async path 2015-02-10 17:39:54 -08:00
Yang Gao 7eb7d75c51 call implementation before the meeting 2015-02-10 14:23:15 -08:00
Craig Tiller 20f4af2e36 Move call.h -> impl/call.h 2015-02-10 09:52:15 -08:00
Craig Tiller f9a06a78cb Remove temp code 2015-02-09 22:14:52 -08:00
Craig Tiller 549a74daa8 Rephrase async streaming methods
To ensure that the CallOpBuffers stay alive until completion.
2015-02-09 22:13:44 -08:00
Craig Tiller 80e00a8c63 Stub out unary call wrapper 2015-02-09 20:54:25 -08:00
Craig Tiller de917062ec Refine completion queue 2015-02-09 17:15:03 -08:00
Craig Tiller 5319164875 Cleanup 2015-02-09 16:15:23 -08:00
Craig Tiller 8de8c646c5 Merge pull request #3 from yang-g/c++api
more implementation and all async signatures
2015-02-09 16:12:36 -08:00
Craig Tiller b470169252 Remove more unnecessary files 2015-02-09 16:12:00 -08:00
Yang Gao 75ec2b191c more implementation and all async signatures 2015-02-09 16:03:41 -08:00
Craig Tiller 40fcdaff0a Remove stream_context 2015-02-09 15:43:34 -08:00
Craig Tiller 1d2e21962e Server progress 2015-02-09 15:25:21 -08:00
Craig Tiller 061754a483 Cleanup some cruft 2015-02-09 14:56:49 -08:00
Craig Tiller 9407a3e807 Merge pull request #2 from yang-g/c++api
ServerReader impl with new API
2015-02-09 14:25:06 -08:00
Yang Gao 8a3bbb5c55 ServerReader with new API 2015-02-09 14:10:59 -08:00
Craig Tiller 20781ccf54 Merge pull request #1 from yang-g/c++api
C++api
2015-02-09 13:48:28 -08:00
Craig Tiller 0db1befae1 Progress 2015-02-09 13:47:39 -08:00
Yang Gao 5f4f0c3170 remove explicit 2015-02-09 13:45:28 -08:00
Craig Tiller 14a65f9760 Further progress 2015-02-09 13:13:14 -08:00
Craig Tiller 2dff17d33b Async API declarations 2015-02-09 12:42:23 -08:00
Craig Tiller df2c957eee Fix compile error 2015-02-09 10:49:38 -08:00
Craig Tiller 7f78d71b8d Add initial metadata stub 2015-02-09 10:47:32 -08:00
Craig Tiller 50950712c1 Further progress 2015-02-09 10:38:38 -08:00
Craig Tiller c4965751a0 Starting to scratch out the API 2015-02-09 09:51:00 -08:00
Craig Tiller 6135107e4a New completion queue 2015-02-06 17:17:24 -08:00
Julien Boeuf 026a417def Adding support for loading the SSL roots from an environment variable.
- Had to add support for files and environment variables as well.
- I can't compile on windows so I'm sure there will be some issues.
- Tested end-to-end with the simple ssl fullstack test.
2015-02-02 18:36:37 -08:00
Yang Gao 5fd0d29dfe run clang-format 2015-01-26 00:19:48 -08:00
Julien Boeuf 8fbcc4391e Changing the SSL (Server) Credentials API.
- Changed the unsigned char * + size to NULL terminated strings which
  makes sense for the PEM format. I may change TSI later (but the impact
  will hopefully be much more limited).
- Added a way to pass multiple key/cert pairs to servers which is needed
  when hosting more than one domain.
- Removed the C++ SSL credentials tests as we are going to have an
  option to not specify the roots which will then be derived from the
  environment (well-known platform dependent locations and/or
  environment variable).
- Fixed the php build which is the only one added in the run_test.py.
  This change will certainly break node, python and ruby.
2015-01-20 22:18:15 -08:00
Craig Tiller d248c24546 Update C++ code to set status via the C api.
This prevents mismatches from breaking tests.
2015-01-14 12:53:38 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
yangg 1b151096d1 Add impl subdirectory under public and move headers that need to be installed
to it.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83640373
2015-01-12 11:22:02 -08:00
yangg 4105e2b86c Add ServiceAccount Credentials wrapping and handle credentials creation
failure.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634736
2015-01-12 11:22:01 -08:00
yangg ed5e7e006b Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
2015-01-06 17:45:46 -08:00
yangg 7cebec7ccd Use overriden host name when creating a call.
Change on 2014/12/22 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82672321
2014-12-29 17:13:16 -08:00
yangg 59dfc90f57 Client side implementation of creating channel with credentials.
The old test_ssl_channel related code is deleted and the new create channel
call is used for interop tests.
	Change on 2014/12/19 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82540921
2014-12-29 16:59:06 -08:00
yangg a4b6f5df94 Add ServerContext. It is currently empty and deadline and metadata will come to
it in subsequent cl's.
	Change on 2014/12/17 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82372934
2014-12-19 13:02:04 -08:00
yangg 87da1b937d Make the default deadline gpr_inf_future to avoid mismatch between
gpr_inf_future and time_point::max(). The redundant AbsoluteDeadline prefix is removed from the utility function names.

Now the ClientContext holds a gpr_timespec instead of a time_point.

A test will be added in the server side deadline support cl.
	Change on 2014/12/11 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81920769
2014-12-12 16:08:10 -08:00
yangg 9e21f7281f Add server side credentials support.
Make interop test use ssl by default.
	Change on 2014/12/08 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81619141
2014-12-08 18:50:13 -08:00
nnoble 0c475f0ad7 Updating moe_db.txt with the latest equivalence since the ruby import changed the exported structure.
Change on 2014/12/01 by nnoble <nnoble@google.com>
-------------
new [] file for grpc testing.
	Change on 2014/12/02 by donnadionne <donnadionne@google.com>
-------------
Fix unfinished calls in thread_stress_test.

Previously we had an early return if we cancelled a stream part way through a
message. Correct this, so that half close and full close signals are propagated
up the stack correctly so that higher level state machines can see the
termination.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Remove dependency on internal C code.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Turn off the flaky bit from thread_stress_test.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Add test cases of empty request/response, request streaming, response streaming, and half duplex streaming.

Bring up the GFE/ESF for mannual test:
[] build java/com/google/net/[]/testing/integration/hexa:server_components_env
[]-bin/java/com/google/net/[]/testing/integration/hexa/server_components_env --manual --rpc_port=25000 --use_autobahn
	Change on 2014/12/02 by chenw <chenw@google.com>
-------------
Make echo/server.c and fling/server.c shutdown cleanly on SIGINT, and update
the relevant tests to exercise this mechanism.

Now "[] coverage" and the memory leak detector are able to see into the
server processes.
	Change on 2014/12/02 by pmarks <pmarks@google.com>
-------------
Allow the # of channels to be configurable in this performance test. The threads will use the channels in statically-defined round-robin order (not based on when RPCs complete on any channel). The interesting cases are #channels=1 or #channels=#threads (we previously only had the latter case)
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Fixed a typo and reworded a comment.
	Change on 2014/12/02 by gnezdo <gnezdo@google.com>
-------------
Require the grpc_call in this ClientContext to be NULL before allowing set_call to be invoked. Otherwise, it's an indication of a leak somewhere.
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Correctly return status other than ok and add a test for it.
	Change on 2014/12/02 by yangg <yangg@google.com>
-------------
Better C++ guards for grpc_security.h
	Change on 2014/12/02 by nnoble <nnoble@google.com>
-------------
Use nullptr instead of NULL for consistency.
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Updates the ruby gRPC service class to require the serialization method to be
a static method

- this brings it inline with the proto3 ruby API
- it adds a monkey patch to allow existing proto (beefcake) to continue working.
	Change on 2014/12/02 by temiola <temiola@google.com>
-------------
Adding a buildable unit to the blue print file.

Added the buildable unit as its name will be usesd as tap project id.

This test will fail right away in tap until tests are actually added.
	Change on 2014/12/02 by donnadionne <donnadionne@google.com>
-------------
Move interop ESF C++ server from Java to grpc directory.

Tests passed:
[] test javatests/com/google/net/[]/testing/integration/hexa/...
[] test net/grpc/testing/interop/esf_server/...
	Change on 2014/12/02 by chenw <chenw@google.com>
-------------
Return a lame channel as opposed to NULL when secure channel creation fails.

- Looks like we're going to need something similar server-side.
- I changed the prototype of the lame client channel factory to take an
explicit void as I think this is better practice in C. Let me know if you
disagree and I will revert these changes.
	Change on 2014/12/02 by jboeuf <jboeuf@google.com>
-------------
Putting ALPN support where it belongs.
	Change on 2014/12/02 by jboeuf <jboeuf@google.com>
-------------
GOAWAY send path.

Sends a GOAWAY frame when shutting down.
This is not read and understood yet.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Adds support for secure channels and servers.

- wraps new C apis (credentials, server_credentials) and Server#add_secure_http_port
- adds tests to ensure credentials and server credentials can be created
- updates client_server_spec to run the client_server wrapper layer end-to-end tests using a secure channel
	Change on 2014/12/03 by temiola <temiola@google.com>
-------------
Fix existing issues regarding out of order events.

At the client side, using pluck as the client_metadata_read can happen anytime after invoke.

At the server side, allow halfclose_ok and rpc_end to come in reverse order.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
Don't track coverage of tests.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Change UnaryCall to conform standard test requirement of LargeUnaryCall.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
updating alpn version to h2-15 ensure all interop are on the same version and working.

Java and go are not ready for h2-16 yet.
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Add config to bring echo server in [].

This is used to test production GFE as its bckend.
	Change on 2014/12/03 by chenw <chenw@google.com>
-------------
In preparation for fixing shutdown race issues, change em to take ownership of
the file descriptor. Add an API to grpc_tcp to take an already created
grpc_em_fd object, and change tcp_client to use that API.

This is needed because otherwise an em user's close() of the file descriptor
may race with libevent internals. That's not an issue yet because destroy()
frees the events inline, but that can't be done safely if there is a concurrent
poller.
	Change on 2014/12/03 by klempner <klempner@google.com>
-------------
Fixing TAP opensource build

We don't want to compile and run C++ tests in the C target.
	Change on 2014/12/03 by nnoble <nnoble@google.com>
-------------
Move and separate interop tests by languages.

Small fixes to the test runner.

Improving logging.
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Fixing the opensource build:

-) The C/C++ split wasn't done up to the 'dep' target level
-) The alpn.c file was missing from build.json
	Change on 2014/12/03 by nnoble <nnoble@google.com>
-------------
Adding blue print files after projects exist
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Refactor StreamContext using the new completion_queue_pluck API.

The dedicated the poller thread has been removed.
This CL keeps the current behavior to make it short. There is one following to
make it usable for both client and server.

The tags for pluck is based on the address of this StreamContext object for potential debug use.

The Read/Write and Wait cannot be called concurrently now and this might need to be fixed.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
Binary encoding utilities.

Support base64 encoding, HPACK static huffman encoding, and doing both at once.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Enforce Makefile regeneration in presubmits.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Make CloseSend() send a real zero-length control message to indicate EOS.
	Change on 2014/12/03 by zhaoq <zhaoq@google.com>
-------------
Prefer to create dualstack sockets for TCP clients and servers, with automatic
fallback for environments where IPV6_V6ONLY can't be turned off.
	Change on 2014/12/03 by pmarks <pmarks@google.com>
-------------
Add opensource path to build targets.

Ensure that MOE is going to run.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Add PingPong test case. Delete FullDuplex test case. The latter is not specified for client in

https://docs.google.com/document/d/1dwrPpIu5EqiKVsquZfoOqTj7vP8fa1i49gornJo50Qw/edit#
	Change on 2014/12/03 by chenw <chenw@google.com>
-------------
Make generate_projects.sh check out the generated targets.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
rspec cleanup

- stops declaring specs within the GRPC module
- splits Bidi streaming specs into a separate test suite

adding tests in the GRPC module was a mistake, it pollutes the module and can
affect other tests that run later by the test runner

the bidi tests are currently flaky, having them run in their own test suite
allows having two separate continuous builds (once ruby gRPC is on GitHub),
one that includes bidi where we tolerate flakiness, and another that does not,
where there should be no flakiness at all
	Change on 2014/12/03 by temiola <temiola@google.com>
-------------
Adding support for composite and IAM credentials.

- For now, we don't do any checks on credentials compatibility in the
composite credentials. Maybe we'll add that later.
- Refactored the end to end security tests so that we always use the public API
(except for the fake security context which is not exposed).
	Change on 2014/12/03 by jboeuf <jboeuf@google.com>
-------------
Make GPR library buildable in Visual Studio 2013.
	Change on 2014/12/04 by jtattermusch <jtattermusch@google.com>
-------------
Adds codegen for ruby

This is being added now that ruby's proto and grpc apis are defined and stable
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Prevent NewStream() from sending negative or 0 timeout.
	Change on 2014/12/04 by zhaoq <zhaoq@google.com>
-------------
Add a grpc_sockaddr_to_string() function, and use it when logging bind
failures.  Also improve const-correctness in some earlier code.

I'm not certain whether inet_ntop() will need any platform-specific
implementations, but for now the compiler offers no complaints.

Demo:
$ []-bin/net/grpc/c/echo_server 1.2.3.4:80
... tcp_server.c:139] bind addr=[::ffff:1.2.3.4]:80: Permission denied
	Change on 2014/12/04 by pmarks <pmarks@google.com>
-------------
Refactoring - moves c wrapped classes to a submodule Google::RPC::Core

- this allows for an explicit rule when reading through gRPC ruby code for telling
when an object is pure ruby or wrapped C
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Fixes the bidi_call

[]
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Fixing dev build when activating surface traces.
	Change on 2014/12/04 by nnoble <nnoble@google.com>
-------------
Updates the tests to reflect that fact that some Credentials compose works.
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Making the generate_project_test actually do something.
	Change on 2014/12/04 by nnoble <nnoble@google.com>
-------------
Rename "esf_server" to "[]4_server". Delete "test_sever" from Java directory.
	Change on 2014/12/04 by chenw <chenw@google.com>
-------------
Added PHP client interop tests. Tested large_unary against the C++ server.
	Change on 2014/12/04 by mlumish <mlumish@google.com>
-------------
Refactor grpc_create_dualstack_socket() by pulling the setsockopt into its own
function.  This separates the magic test flag from the real fallback logic.
	Change on 2014/12/04 by pmarks <pmarks@google.com>
-------------
Fixes the type of the constant used for test cert hostname
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Disabling these tests as they're causing flakiness.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Change intptr --> uintptr.

Handles the case where a void* turns into a negative number, which then gets
hashed into a negative bucket and segfaults.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Add a test fixture to force parsers to handle one byte at a time.

This should expand coverage and hopefully prevent errors at some point (it
seems to pass out of the box for now though).
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
The code generator isn't +x.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Updates math_client and math_server to allow construction using crednetials

By:
- Extending rpc_server constructor so that it takes a credentials keyword param
- Extending client_stub constructor so that it takes a credentials keyword param
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Format output a little more nicely.

Print each line of output separately - previously logging.info was truncating this at some maximum length, and logs were getting lost.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Up timeout for this test.

Under TSAN, if we process one byte at a time, this timeout can be reached - and I think this is the cause of the following flake:
[]
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Adding more error logging for ssl.
	Change on 2014/12/05 by jboeuf <jboeuf@google.com>
-------------
Read path for goaway.

Still need to add hooks to deprecate a channel on the client side when goaway
is received.
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Separate accept() into server_accept() and server_end_of_initial_metadata().

This allows servers to initiate reads before finishing writing metadata.
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Fix for breakage 11512317 - adding missing test files.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
grpc c++ server side streaming support.

This is based on [] There is a lot of room to clean up the internal implementation which may require refactoring of CompletionQueue. The current cl serves as a working implementation with the missing interfaces.

The sample generated files are included and will be removed before submitting.
	Change on 2014/12/05 by yangg <yangg@google.com>
-------------
Changed to the latest timeout format again (search "grpc-timeout" in [] for the spec).
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Fixing opensource build.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Making absolutely sure we can do the moe export by adding a sh_test for it.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Change :scheme psuedo-header from "grpc" to "http" or "https".
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Add server credential wrapping for c++ server. It only wraps ssl and []2 for now.

The ServerCredentials class and the factory class are in a similar fashion as
client side wrapping. The difference is the factory method returns shared_ptr
instead of unique_ptr as the server builder needs to keep a reference to it for
actually creating the server later.

The integration will happen in a following cl.
	Change on 2014/12/05 by yangg <yangg@google.com>
-------------
Fixed bugs in new_grpc_docker_builder.sh
	Change on 2014/12/05 by mlumish <mlumish@google.com>
-------------
In secure endpoint, hold a refcount for the life of a write callback if the
write does not complete immediately.
	Change on 2014/12/05 by klempner <klempner@google.com>
-------------
Add migration support to MOE and have TAP verify it doesn't break.

Migration support allows mirroring commits from [] into the git repo, instead of just a dump of the current source.
	Change on 2014/12/05 by ejona <ejona@google.com>
-------------
Change initial window size to 65535 according http2 draft 15.
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Re-enable the flaky cases in dualstack_socket_test, with additional logging to
help track down the problem if it surfaces again.

This also seems like a good opportunity to make grpc_socket_utils a separate
library, as it's not really specific to TCP.

Example output:
logspam: [], 26570) resolved 2 addrs in 37ms:
logspam:   [0] [::1]:26570
logspam:   [1] 127.0.0.1:26570
	Change on 2014/12/05 by pmarks <pmarks@google.com>
-------------
Opensource build fixes.

-) A function that has a return type should actually return something.
-) Don't pass unsigned chars to strlen and strncmp.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81458281
2014-12-05 16:00:44 -08:00
Nicolas Noble b7ebd3b8c6 Initial import. 2014-11-26 16:33:03 -08:00