Commit Graph

421 Commits

Author SHA1 Message Date
Craig Tiller cca7589333 Start moving C++ to slice interfaces 2016-11-21 08:45:38 -08:00
Yuchen Zeng b1f6bf2ec4 Merge pull request #8086 from y-zeng/fix_gprc
Fix misspelled gprc
2016-11-11 15:11:44 -08:00
Craig Tiller 32df467f11 Merge github.com:grpc/grpc into grpc_slice 2016-11-04 08:21:56 -07:00
Vijay Pai 320ed13d3e Deprecate grpc::thread and sync in favor of std::thread,mutex,etc 2016-11-01 17:16:55 -07:00
Vijay Pai 5c41bab92c Remove references to NO_CHRONO option 2016-11-01 16:57:42 -07:00
Vijay Pai e08fe4f41e Remove separate versions of code based on presence of threading in compiler 2016-11-01 16:50:38 -07:00
Vijay Pai 713c7b87e1 clang-format 2016-11-01 16:33:18 -07:00
Vijay Pai c0b2acb1a0 Use C++11 final and override 2016-11-01 16:31:56 -07:00
Vijay Pai 80b292709c Stop supporting non-C++11 conformant compilers 2016-11-01 13:38:40 -07:00
Craig Tiller 41fd9f2343 Merge github.com:grpc/grpc into grpc_slice 2016-10-31 14:42:53 -07:00
Craig Tiller 28b72428a8 clang-format 2016-10-26 21:15:29 -07:00
Craig Tiller 5b676a6b1a Fix include guards 2016-10-26 21:09:29 -07:00
Craig Tiller 618e67d655 s/GPR_SLICE/GRPC_SLICE/g 2016-10-26 21:08:10 -07:00
Craig Tiller d41a4a720f s/gpr_slice/grpc_slice, and move around tests, impls 2016-10-26 16:16:06 -07:00
Sree Kuchibhotla c5fb957e50 Merge branch 'master' into rpc_mgr 2016-10-21 14:38:21 -07:00
Vijay Pai 9243c74868 Merge pull request #8365 from vjpai/fc_1dstream
Support request separation of server-side streamed RPC
2016-10-20 14:31:14 -07:00
Vijay Pai bcc59f425c Remove a useless forward declaration 2016-10-20 11:38:04 -07:00
Sree Kuchibhotla 556aebb1e0 Merge branch 'master' into rpc_mgr 2016-10-18 14:59:24 -07:00
Vijay Pai 9fa9315d62 Merge remote-tracking branch 'upstream/master' into fc_1dstream 2016-10-18 12:15:08 -07:00
Yuchen Zeng 799832c32d Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-10-17 11:41:02 -07:00
yang-g 4287998855 Add a test spouse for server context 2016-10-13 16:45:53 -07:00
Vijay Pai 96e03110db clang-format 2016-10-13 14:09:16 -07:00
Vijay Pai 075b18e77f Bug fix on failure condition 2016-10-13 12:05:40 -07:00
Sree Kuchibhotla e4996d6c43 Merge branch 'master' into rpc_mgr 2016-10-13 11:18:09 -07:00
Vijay Pai 61536a7371 Making split streaming testable 2016-10-13 11:04:57 -07:00
Vijay Pai 22fcbf9663 Merge branch 'master' into fc_1dstream 2016-10-13 09:39:05 -07:00
Sree Kuchibhotla 33382d0f53 Cleanup server_cc.cc 2016-10-03 15:15:49 -07:00
Vijay Pai db5b1cbc94 Add all plumbing and typedef's for controlled server-side streaming 2016-10-03 09:18:46 -07:00
Mark D. Roth a40d471110 Plumb through GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET. 2016-09-29 10:05:50 -07:00
Mark D. Roth 59c9f904bf Rename GRPC_INITIAL_METADATA_IGNORE_CONNECTIVITY to
GRPC_INITIAL_METADATA_WAIT_FOR_READY.
Also add a flag to indicate whether wait_for_ready was explicitly set by
the application.
2016-09-28 13:33:21 -07:00
Mark D. Roth 9477724003 Change C++ API to expose wait_for_ready instead of fail_fast. 2016-09-27 13:07:00 -07:00
Yuchen Zeng b8a886754e Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-09-22 10:59:39 -07:00
Mark D. Roth abf03aed93 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-16 07:35:37 -07:00
Yang Gao 24869d558a Merge pull request #7996 from yang-g/canonical
Add a helper to get canonical code from status
2016-09-15 15:58:17 -07:00
Yuchen Zeng 66f3a4bbdf Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-09-15 11:21:52 -07:00
Craig Tiller a51f54192a Merge pull request #7559 from dgquintas/codegen_cleanse
Removed references to public APIs from codegen/
2016-09-13 19:40:43 -07:00
Yuchen Zeng 362ac1be0c Fix gprc 2016-09-13 16:01:31 -07:00
Mark D. Roth f5afcd9f65 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-13 14:57:50 -07:00
yang-g d558149a5e Add a helper to get canonical code from status 2016-09-09 09:37:33 -07:00
Makarand Dharmapurikar 2b98b77225 add cacheable option to client_context 2016-09-07 14:24:15 -07:00
Mark D. Roth 3ad6188920 Fix a few lingering references to max_message_size. 2016-09-06 13:03:39 -07:00
Mark D. Roth 7bfa1a8343 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-06 10:44:32 -07:00
Mark D. Roth 6980362c4e Allow setting max send message size via C++ ServerBuilder API. 2016-09-06 08:15:36 -07:00
David Garcia Quintas d10f1775eb Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-09-03 12:42:02 +02:00
kpayson64 8d40e083f1 Merge pull request #7018 from vjpai/fc_unary
Support server-side streaming of a unary RPC
2016-09-02 09:15:14 -07:00
David Garcia Quintas 410208c25c Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-09-01 18:23:55 +02:00
Mark D. Roth 79d7d99600 Merge pull request #7842 from jboeuf/security_context_extension
Adding extension points for security context.
2016-08-31 10:00:17 -07:00
Vijay Pai 5c9a3438c5 clang-format 2016-08-30 20:52:32 -07:00
Vijay Pai 84033b1f6b Stick to StatusCode::INTERNAL when there's no service
response on a StreamedUnary
2016-08-30 20:50:43 -07:00
David Garcia Quintas e3817f4fd1 Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-31 00:25:29 +02:00
Vijay Pai 77073ce99f clang-format 2016-08-30 10:26:30 -07:00
Vijay Pai de2aec8106 Merge branch 'master' into fc_unary
Resolve conflicts in ServerReaderWriterInterface
Remove file server_streamed_unary.h and merge with sync_stream.h
2016-08-30 10:20:20 -07:00
David Garcia Quintas 621e2b1a49 Merge with newly added/modified files 2016-08-30 09:27:19 -07:00
kpayson64 d76ea83728 Merge pull request #7798 from y-zeng/ServerReaderWriterInterface
Add ServerReaderWriterInterface
2016-08-30 08:34:19 -07:00
David Garcia Quintas f3581bf90a Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-30 04:45:50 -07:00
Vijay Pai d4d5f4cd53 clang-format 2016-08-29 16:59:21 -07:00
Vijay Pai a9c0d7f88b Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
violating the appearance of unary-ness)
2016-08-29 16:42:04 -07:00
Julien Boeuf 2b2b345841 Addressing feedback. 2016-08-25 21:22:55 -07:00
Vijay Pai cdc253535b Remove FC_UNARY enum and treat it more like a special case of BIDI_STREAMING
in all cases
2016-08-25 15:33:02 -07:00
Vijay Pai ac4113bef1 Merge branch 'master' into fc_unary 2016-08-25 14:49:18 -07:00
Takuto Ikuta bb04734eec Fix a typo 2016-08-25 13:31:51 +09:00
Julien Boeuf 6b93d46bb8 Adding extension points for security context. 2016-08-23 10:04:03 -07:00
Yuchen Zeng 59e835d431 Add comments 2016-08-19 15:23:23 -07:00
Yuchen Zeng e0705e2dc2 Add ServerReaderWriterInterface 2016-08-19 15:13:43 -07:00
kpayson64 b80d9c9626 Merge pull request #7594 from chedeti/grpc-thrift-v2
grpc thrift integration
2016-08-17 16:59:20 -07:00
chedeti a7ee93864a remove const in Deserialize 2016-08-04 14:42:35 -07:00
chedeti 76db7f9a7c use boost::make_shared 2016-08-04 11:56:54 -07:00
Vijay Pai 5d94118d0d clang-format 2016-08-04 11:48:47 -07:00
Vijay Pai 581097fe0d Make FCUnary and ServerReaderWriter derived classes of a new
ServerReaderWriterInterface so that some functions can be made
to accept either.
2016-08-04 10:50:51 -07:00
Vijay Pai 666681612e Merge branch 'master' into fc_unary 2016-08-04 09:44:51 -07:00
chedeti 82afcaa009 rename class variables to snake_case 2016-08-03 16:38:05 -07:00
David Garcia Quintas 1f32ae4e84 Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-02 10:24:44 -07:00
chedeti a17039aaa4 refine code and add README 2016-08-01 17:32:06 -07:00
David Garcia Quintas ffd207fe4c fixed include guard script and faulty .h 2016-08-01 16:20:52 -07:00
chedeti bc618eed71 thrift serializer 2016-07-31 15:35:51 -07:00
Nicolas Noble e51b9d2e39 Merge pull request #7502 from dgquintas/cpp_compression_level
C++ Compression Level set properly
2016-07-28 18:28:17 -07:00
David Garcia Quintas 61887dcf46 scrubbed codegen/sync.h 2016-07-27 23:17:34 -07:00
David Garcia Quintas e8fd66b71d removed codegen/slice_buffer.h and scrubbed codegen/slice.h 2016-07-27 22:05:37 -07:00
David Garcia Quintas c79b0650d2 removed codegen/log.h 2016-07-27 21:11:58 -07:00
David Garcia Quintas 1399e466b0 removed codegen/time.h 2016-07-27 20:31:55 -07:00
David Garcia Quintas 3b31fdf77b removed codegen/byte_buffer.h 2016-07-27 18:17:12 -07:00
David Garcia Quintas 6b11462da1 removed codegen/alloc.h 2016-07-27 14:49:53 -07:00
Vijay Pai 2d04dd827c Change API for next message size to allow a bool return value for failure
cases.
2016-07-27 11:35:56 -07:00
kpayson64 b5fa72c89e Merge pull request #7451 from y-zeng/seperate_generated_files
Separate generated pb files from the server reflection build target, use grpc::protobuf instead of google::protobuf
2016-07-25 14:32:51 -07:00
David Garcia Quintas 440558a7ec C++ Compression Level set properly 2016-07-21 19:31:38 -07:00
David Garcia Quintas f77b9bf2fe Removed unused version of async_stream.h 2016-07-21 19:24:51 -07:00
Yuchen Zeng 2edf5e904b Merge remote-tracking branch 'upstream/master' into seperate_generated_files 2016-07-21 16:15:12 -07:00
kpayson64 b8e26c0217 Merge pull request #7486 from dgquintas/alive_typo
fixed typo
2016-07-21 15:15:47 -07:00
Vijay Pai 0a1c598986 Merge branch 'master' into fc_unary 2016-07-21 11:34:02 -07:00
Nicolas Noble 98f47f6169 Merge pull request #7469 from yang-g/proto_lite
Add a macro to support protobuf lite
2016-07-21 11:13:53 -07:00
David Garcia Quintas b91cddb2fa fixed typo 2016-07-20 17:40:01 -07:00
Yuchen Zeng 543c5886ee Merge remote-tracking branch 'upstream/master' into seperate_generated_files 2016-07-19 19:15:55 -07:00
kpayson64 7c519b9243 Merge pull request #7444 from y-zeng/fix_typo
Fix typos in config_protobuf.h
2016-07-19 17:34:59 -07:00
yang-g e6c04aa612 Add a macro to support protobuf lite 2016-07-19 14:46:50 -07:00
Yuchen Zeng 1318479011 Separate generated file and protobuf dependency 2016-07-18 13:07:42 -07:00
Yuchen Zeng 3046557a02 fix typo 2016-07-18 12:08:17 -07:00
Yuchen Zeng 24987dbf77 fix typo 2016-07-18 10:35:44 -07:00
Sree Kuchibhotla 69b74784fe Reduce the number of unnecessary allocations 2016-07-14 21:24:07 -07:00
David Garcia Quintas f2e20c2d8c Merge branch 'master' of github.com:grpc/grpc into bb_reader_error 2016-07-06 15:34:42 -07:00
David Garcia Quintas 6721d4f0f1 Return success status of grpc_byte_buffer_reader 2016-06-30 17:30:08 -07:00
David Garcia Quintas 314d3350d9 removed unused version of status_code_enum.h 2016-06-30 09:51:02 -07:00
Jan Tattermusch 3901ceed6a Merge pull request #6947 from vjpai/async_stream_doc
Doc Fixit: Ordering and thread-safety for C++ streaming (sync/async) APIs
2016-06-24 10:16:30 -07:00
vjpai c0c38b1f19 Make the FCUnary class actually work and test it 2016-06-23 17:27:11 -07:00
vjpai fcb98a578c Add NextMessageSize method to all readable streams as an upper-bound
on the actual message size.
Rename Size of FCUnary to NextMessageSize for consistency
2016-06-23 13:18:50 -07:00
vjpai a12276932d Add some const 2016-06-23 13:18:19 -07:00
vjpai 7142a91fc9 Fix up service types and method handlers so that FC unary can work properly. 2016-06-23 10:16:00 -07:00
Bill Clarke c072c927a8 Const correctness for ClientContext and ServerContext getters 2016-06-22 17:07:00 -07:00
vjpai ba6597f297 Actually generate code for FC Unary and make it work 2016-06-22 15:49:48 -07:00
vjpai 726561ed06 Initial definition of flow-controlled unary type along with code generation for this type 2016-06-22 11:14:24 -07:00
vjpai bd28936c86 Properly handle reviewer comment re concurrent Read 2016-06-21 18:03:37 -07:00
vjpai ef01edf5b7 Fix review comments 2016-06-21 16:42:08 -07:00
vjpai 1d9b1e9640 Merge branch 'master' into async_stream_doc 2016-06-21 16:32:13 -07:00
vjpai b9df2760ed Add proper documentation of ordering and thread-safety for
streaming (sync and async) APIs
2016-06-17 00:27:00 -07:00
Vijay Pai b9e927afcc Merge branch 'master' into wheezy 2016-06-15 22:57:21 -07:00
Vijay Pai 20bf126da6 clang-format 2016-06-15 22:21:48 -07:00
Vijay Pai a63271c77f Deal with to_string, proper usage of nullptr, and lack of map::emplace 2016-06-15 12:56:38 -07:00
Vijay Pai 06ea541ed9 Provide nullptr->std::function cast 2016-06-15 10:57:50 -07:00
David Garcia Quintas 058c9de8b2 Added to server's shutdown docstrings 2016-06-13 19:04:43 -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
vjpai 97da6473b4 Manual clang-format 2016-06-13 09:56:26 -07:00
Vijay Pai ce350a5925 override->GRPC_OVERRIDE
Remove range-based fors
2016-06-09 17:22:35 -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 b17e25ce94 Merge pull request #6649 from dgquintas/core_codegen_be_public
moved core_codegen from src/cpp/... to include/grpc++/...
2016-06-08 13:16:55 -07:00
Jan Tattermusch 026dfe60a5 Merge pull request #6820 from mdsteele/server-async
Add interfaces for ServerAsyncReader/Writers
2016-06-08 13:11:30 -07:00
Matthew D. Steele 080749e8ba Add interfaces for ServerAsyncReader/Writers 2016-06-08 10:37:23 -04:00
David Garcia Quintas 533add5a87 Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-06-07 21:21:27 -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
David Garcia Quintas 30fb536053 PR comments (offline). 2016-06-07 16:24:17 -07:00
Yuchen Zeng d23710787b Merge remote-tracking branch 'upstream/master' into reflection_separate_lib 2016-06-07 15:00:52 -07:00
Jan Tattermusch 570408fd4c Merge pull request #6741 from yang-g/its_ok_to_have_no_read_on_cancelled_call
Let Next set ok=true when receiving error status
2016-06-07 10:54:02 -07:00
yang-g 17487f9a22 Make grpc++ independent of protobuf 2016-06-03 15:21:15 -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
Yuchen Zeng 3623dc5cdd Move protobuf dependencies to config_protobuf.h 2016-06-03 13:41:46 -07:00
yang-g 15759f610e Let Next set ok=true when receiving error status 2016-06-01 11:21:27 -07:00
David Garcia Quintas a20a2ad41b moved core_codegen from src/cpp/... to include/grpc++/... 2016-05-19 11:02:01 -07:00
Craig Tiller 9766f4f424 Merge github.com:grpc/grpc into test_affine 2016-05-18 16:55:35 -07:00
David Garcia Quintas 697a41f682 fixes to grpc++/impl/codegen/call.h 2016-05-18 15:26:42 -07:00
David Garcia Quintas 8f7365021f Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-05-18 10:29:57 -07:00
Jan Tattermusch 057a2f8f7c Merge pull request #6445 from yang-g/unique_ptr_reset
Add an explicit base class pointer to avoid potential breakage.
2016-05-18 07:30:06 -07:00
Craig Tiller 1102faffca Merge branch 'connect_first' into test_affine 2016-05-14 13:27:02 -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 0fde7131aa Fixed usage of anon namespace inside .h 2016-05-13 15:13:51 -07:00
Craig Tiller 52237e3a96 clang-format 2016-05-13 14:37:25 -07:00
Craig Tiller 63d24f1c7d Make qps workers connect before even warmup stage begins 2016-05-13 14:36:09 -07:00
David Garcia Quintas d6fb831ce5 Updated codegen/call.h 2016-05-13 11:06:05 -07:00
David Garcia Quintas 48a5ddd00c Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-05-12 17:54:58 -07:00
yang-g 73621357ab Merge remote-tracking branch 'upstream/master' into unique_ptr_reset 2016-05-12 14:01:13 -07:00
Jan Tattermusch b85e9d43f0 fix formatting 2016-05-11 10:21:45 -07:00
yang-g b6f853d065 Add comment 2016-05-10 16:47:02 -07:00
Sree Kuchibhotla 8dbe2cb071 Merge branch 'master' into server_channel_affinity 2016-05-10 10:33:25 -07:00
David Garcia Quintas a301eaade8 Allow servers to select compression level via initial MD.
Setting the newly added compression_level field of
grpc_op::send_initial_metadata by a server now has the effect of
applying that compression level for the subsequent call messages leaving
the server. The ultimate meaning of the level depends on the client's
supported compression algorithms.
2016-05-09 14:30:41 -07:00
yang-g 7099d6fed6 Add an explicit base class pointer to avoid potential breakage. 2016-05-05 10:53:50 -07:00
Jan Tattermusch bc2afb065a Merge pull request #6323 from dgquintas/codegen_remove_proto
Moved protos out of core_codegen interface
2016-05-04 19:09:29 -07:00
Sree Kuchibhotla b69251c2f6 Merge branch 'master' into server_channel_affinity 2016-05-03 09:33:13 -07:00
Craig Tiller 4ee1a62723 Stress test fixes
- properly fail a Read() on a stream if we fail to parse a protobuf
- fix an ordering problem with the chttp2 transport global lock, whereby
  a sequence of two operations could be swapped - this resulted in
  slices being returned to the upper layers in the wrong order,
  corrupting data
2016-04-29 16:47:27 -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
Sree Kuchibhotla 01907123f6 generate_projects.sh and fix copyright year 2016-04-21 15:09:13 -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
Craig Tiller 788a25365d Fix dependencies 2016-04-12 17:13:43 -07:00
Craig Tiller 666a362a66 clang-fmt 2016-04-12 13:46:30 -07:00
Craig Tiller 3ab2fe0094 Rollup of changes from the latest import 2016-04-11 20:11:18 -07:00
Craig Tiller 08eb0d6752 clang-format 2016-04-01 12:59:17 -07:00
Craig Tiller c954f59c2e Fix missing arg 2016-04-01 12:35:32 -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 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
David Garcia Quintas c14f1cbe9a new fixed guards 2016-03-18 10:14:27 -07:00
David Garcia Quintas 185768b702 Merge branch 'master' of github.com:grpc/grpc into guard_check 2016-03-17 22:42:39 -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
David Garcia Quintas 3598d4457d Fixed include guards 2016-03-15 14:53:05 -07:00
David Garcia Quintas 9eef377865 clang-format 2016-03-09 11:31:02 -08:00
David Garcia Quintas 60ee8dd2fc docstrings 2016-03-08 17:21:42 -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 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 f588aeb1e2 introduced workaround for proto_utils 2016-03-02 20:33:28 -08:00
David Garcia Quintas bcd78fe845 Added missing virtual dtor 2016-02-19 15:39:16 -08:00
Craig Tiller c0473cc823 Merge github.com:grpc/grpc into compress 2016-02-11 08:51:16 -08:00
David Garcia Quintas 26a9848416 Removed outdated mention of AsynchronousService 2016-02-11 00:45:00 -08:00
David Garcia Quintas ab5da5ef7a Added missing codegen includes 2016-02-09 20:31:37 -08:00
Vijay Pai 30bf3ea4b9 clang-format 2016-02-08 13:21:07 -08:00
Vijay Pai c593ca0171 reset the shared_ptr 2016-02-08 11:38:42 -08:00
Vijay Pai bedf57fe8c Ref the collection only when it will be used (and later finalized) 2016-02-05 16:45:54 -08:00
Vijay Pai 2b5638668e Drop the ref 2016-02-05 15:11:36 -08:00
Vijay Pai 5506bea349 Undo much of the previous commits so that only CallOpSet groups
with a Sneaky member are in a collection.
2016-02-05 14:23:24 -08:00
Vijay Pai 7e3f9b0178 Forgot to include these edits in the last commit 2016-02-05 13:43:17 -08:00
Vijay Pai 38004a8e39 Wrap groups of related CallOpSet's into a ref-counted structure
whenever appropriate so as to avoid any unintentional free-before-use
problems.

Potential performance issue: this triggers an additional allocation
for each Async call initiation, along with the cost of ref-counting
shared_ptr . But this is worth it for the additional safety provided
here without any change to the exposed C++ API.
2016-02-05 13:40:22 -08:00
Craig Tiller 97cb41cfaf Merge github.com:grpc/grpc into compress 2016-02-05 10:44:56 -08:00
Craig Tiller a44cbfc11c Fix race condition in transport API
Specifically:

Receiving trailing and initial metadata had to be published in
lock-step.
=> If we wanted trailing metadata, we might not get initial metadata processed
   until messages arrived.
=> Compression code had no idea what codec to use.

To fix it, publish initial metadata as soon as it's ready (this is a
transport API change).

Requires changes to grpc_call to ensure ordering in processing initial
metadata and messages (one may be delayed).

Exposed at least some bugs in C++ where we never read initial metadata.

I expect at least one more similar bug.
2016-02-03 16:02:49 -08:00
Sree Kuchibhotla 3075c81028 Update comment on TryCancel() API 2016-01-29 18:25:22 -08:00
Sree Kuchibhotla f25c6ba229 Comments and format 2016-01-28 18:04:03 -08:00
Sree Kuchibhotla 7fa9d6f4c8 TryCancel() on ServerContext() 2016-01-28 17:32:48 -08:00
David Garcia Quintas 6523391782 sanity fixes 2016-01-27 20:07:36 -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 6bd7b97dc6 DONE!!1one 2016-01-27 19:21:12 -08:00
David Garcia Quintas e1300deb87 After GrpcLibrary refactoring. Compiles and passes. WIP still 2016-01-27 18:41:26 -08:00
David Garcia Quintas 6a48405ed0 pre sync_stream.cc creation. Does not compile 2016-01-25 19:12:37 -08:00
David Garcia Quintas b523c732d1 async_stream.h done. Compiles 2016-01-25 18:22:28 -08:00
David Garcia Quintas 3452ae27c1 copyrights 2016-01-25 17:34:49 -08:00
David Garcia Quintas 2425bbbc55 Further work. Compiles. WIP 2016-01-25 17:32:48 -08:00
David Garcia Quintas ddcb53a9de made codegen targets in build.yaml 2016-01-21 17:48:34 -08:00
David Garcia Quintas 1d9b8079cb clang-format 2016-01-21 10:08:22 -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 6190854157 updated copyrights 2016-01-20 11:21:27 -08:00
David Garcia Quintas a701ed7759 Merge branch 'proto_interfaces' into yang-g-sync_async_mix 2016-01-19 18:44:47 -08:00
David Garcia Quintas 1f4e72c19c override -> GRPC_OVERRIDE 2016-01-19 14:45:32 -08:00
David Garcia Quintas 44f3249018 Introduced ServerInterface 2016-01-15 16:49:16 -08:00
David Garcia Quintas e50c6c2f5e WIP. Added ChannelInterface 2016-01-13 16:02:00 -08:00