Commit Graph

1231 Commits

Author SHA1 Message Date
vjpai 50d7e3c4eb I merged this without checking the copyright. My mistake... 2016-02-12 23:09:04 -08:00
Craig Tiller d4f2604b53 Small tweak to make some customer code compile 2016-02-12 15:00:22 -08:00
Craig Tiller 017f84ead8 Merge pull request #5078 from ctiller/compatibility_mode
Make binary compatibility not the default
2016-02-12 12:23:51 -08:00
David G. Quintas 3f19f42771 Merge pull request #5052 from ctiller/compress
Fix race condition in transport API
2016-02-11 18:16:11 -08:00
David G. Quintas 2afed4ca44 Merge pull request #5079 from nicolasnoble/underscores_are_the_root_of_all_evil
Removing underscores in CENSUS_API, GRPC_API and GPR_API.
2016-02-11 15:30:49 -08:00
Craig Tiller 1362c24108 Merge pull request #5193 from vjpai/alarm_mods
Make C++ alarm class usable and testable
2016-02-11 12:36:07 -08:00
Craig Tiller c0473cc823 Merge github.com:grpc/grpc into compress 2016-02-11 08:51:16 -08:00
Craig Tiller b718c8af70 Merge github.com:grpc/grpc into compatibility_mode 2016-02-11 08:48:13 -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
David Garcia Quintas 26a9848416 Removed outdated mention of AsynchronousService 2016-02-11 00:45:00 -08:00
vjpai 04e992a750 Make C++ alarm class usable and testable - there were some build issues and
it was not actually even included in the library or the test suite.
2016-02-10 16:58:38 -08:00
David Garcia Quintas ab5da5ef7a Added missing codegen includes 2016-02-09 20:31:37 -08:00
Craig Tiller 64914ae6b5 Merge pull request #5128 from yang-g/inherit_from_grpc_library
Add missing base class
2016-02-08 15:14:29 -08:00
Nicolas Noble e2c7671170 Merge pull request #5099 from vjpai/cpp_races
Move internals of many C++ Async classes to ref-counted struct
2016-02-08 15:11:24 -08:00
yang-g a1fc8fb95f Merge remote-tracking branch 'upstream/master' into inherit_from_grpc_library 2016-02-08 15:00:32 -08:00
Craig Tiller ee6a1dcea6 Fix include hygiene 2016-02-08 14:41:45 -08:00
Nicolas "Pixel" Noble cd41a0b549 Removing undescores in {GPR,GRPC,CENSUS}_API. 2016-02-08 22:53:14 +01:00
Vijay Pai 4776292fc3 Merge branch 'master' into cpp_races 2016-02-08 13:21:55 -08:00
Vijay Pai 30bf3ea4b9 clang-format 2016-02-08 13:21:07 -08:00
yang-g 46d22d5fa7 add missing base class 2016-02-08 12:27:10 -08:00
Vijay Pai c593ca0171 reset the shared_ptr 2016-02-08 11:38:42 -08:00
Craig Tiller 91aaee429b Merge pull request #5096 from a-veitch/win_cv_wait
Add timespan support for win32 gpr_cv_wait.
2016-02-08 10:23:11 -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
murgatroid99 85474df7b3 Reverse changes to AVL code 2016-02-05 15:51:47 -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
Alistair Veitch 0a7468a537 Add timespan support for win32 gpr_cv_wait. 2016-02-05 13:13:13 -08:00
murgatroid99 7a55684a13 Clang format and fix copyrights 2016-02-05 11:33:30 -08:00
murgatroid99 309830f6b8 Replace 'long' with 'int64_t' in public core headers 2016-02-05 11:30:00 -08:00
Craig Tiller 97cb41cfaf Merge github.com:grpc/grpc into compress 2016-02-05 10:44:56 -08:00
Craig Tiller 71ea4a1955 Make binary compatibility not the default 2016-02-04 15:06:41 -08:00
Bogdan Drutu e4fdcd9242 Merge pull request #5013 from a-veitch/tag_set_to_context
Change all instances of census_tag_set to census_context
2016-02-04 12:42:35 -08:00
Nicolas "Pixel" Noble 221c9c74e7 Fixing inclusion of stdint.h 2016-02-04 18:05:17 +01:00
Masood Malekghassemi 10509a28c7 Fix Python Windows build 2016-02-04 17:18:18 +01: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
Alistair Veitch 6f2b8993fd merge 2016-02-03 09:02:46 -08:00
Sree Kuchibhotla 9bc6fa0a40 Merge branch 'master' into server_try_cancel_api 2016-02-03 07:41:31 -08:00
Alistair Veitch ddb163a0e4 merge 2016-02-02 13:33:44 -08:00
Nicolas "Pixel" Noble 8696d577d6 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable 2016-02-02 20:14:56 +01:00
Alistair Veitch a628ac9f25 formatting 2016-02-02 10:02:30 -08:00
Alistair Veitch 2e6c1822f6 add missing CENSUS_API annotations 2016-02-02 09:51:56 -08:00
Alistair Veitch 75d5c0f024 post merge 2016-02-02 09:43:02 -08:00
Craig Tiller 9828aade97 Support falling back on older secure_getenv/getenv versions on older glibc 2016-02-01 14:07:34 -08:00
Sree Kuchibhotla a0a8eaab0e Merge branch 'master' into server_try_cancel_api 2016-02-01 14:04:19 -08:00
Nicolas "Pixel" Noble 8382829f30 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable 2016-02-01 20:18:59 +01:00
Craig Tiller 3c4bbc056d Merge branch 'no_extern_allowed' of github.com:nicolasnoble/grpc into patchy 2016-02-01 09:38:14 -08:00
Craig Tiller 26af07924e Merge pull request #4934 from jboeuf/ssl_credentials_override_default_roots
Ssl credentials override default roots
2016-02-01 07:36:14 -08:00
Nicolas "Pixel" Noble 763cc08928 Merge branch 'win32_subprocess' into make-ruby-installable 2016-01-31 10:06:29 +01:00