Commit Graph

67 Commits

Author SHA1 Message Date
David Garcia Quintas 0fde7131aa Fixed usage of anon namespace inside .h 2016-05-13 15:13:51 -07:00
Jan Tattermusch b85e9d43f0 fix formatting 2016-05-11 10:21:45 -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
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
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