Commit Graph

947 Commits

Author SHA1 Message Date
yang-g 55c6ebfd7a Merge branch 'master' into health 2017-02-17 09:55:03 -08:00
yang-g f07ed45439 Restore the NextMessageSize for streamed calls 2017-02-16 23:01:28 -08:00
David Garcia Quintas fafe995900 comments 2017-02-15 10:53:25 -08:00
David Garcia Quintas f31f096274 Use call context to propagare LR costs 2017-02-13 16:26:00 -08:00
Yang Gao f0ef22496c Merge pull request #9629 from yang-g/qqq
Add a PreServerStart in global server callbacks
2017-02-08 10:03:42 -08:00
yang-g 076bac017b Remove async 2017-02-07 13:50:36 -08:00
yang-g f2fe4f7dbd Add a PreServerStart in global server callbacks 2017-02-07 12:47:22 -08:00
Harvey Tuch 5f3cfe960f Fix read from uninitialized memory bug in GrpcBufferWriter.
This commit fixes an issue in which the following sequence of operations
leads to use of uninitialized memory:

1. Caller invokes GrpcBufferWriter::Next(), and then makes use of 8191
   bytes in the returned buffer (which is 8192 bytes in size).

2. Caller then returns the unused single byte via
   GrpcBufferWriter::BackUp(). This method invokes
   g_core_codegen_interface->grpc_slice_split_tail(), which causes
   backup_slice_ to be a grpc_slice with one byte.

3. At the next invocation of GrpcBufferWriter::Next(), a reference to
   the single byte grpc_slice is returned to the caller.

The problem here is that the returned reference is to the inlined buffer
in the grpc_slice, which is resident in slice_, not the location of the
buffer inside slice_buffer_ after
g_core_codegen_interface->grpc_slice_buffer_add() in
GrpcBufferWriter::Next(). As a result, any data the caller writes to the
returned void* data is lost.

The solution is to avoid inlined backup slices.
2017-02-07 15:45:44 -05:00
yang-g edcde054c6 Merge remote-tracking branch 'upstream/master' into health 2017-01-30 09:58:46 -08:00
Craig Tiller 68bb6a8453 Merge github.com:grpc/grpc into rollfwd 2017-01-27 06:52:13 -08:00
Craig Tiller 4edd56751f Merge github.com:grpc/grpc into maxmsgsz 2017-01-26 13:50:14 -08:00
yang-g a7198021a6 merge with head 2017-01-26 13:23:52 -08:00
Craig Tiller afceb2edbd Merge github.com:grpc/grpc into rollfwd 2017-01-26 12:21:28 -08:00
Mark D. Roth 448c1f002c Move parameters for all grpc_op types into their own sub-structs. 2017-01-25 10:44:30 -08:00
Craig Tiller 7c70b6c144 Revert "Revert "Metadata handling rewrite""
This reverts commit 5e01e2ac97.
2017-01-23 07:48:42 -08:00
Craig Tiller 5e01e2ac97 Revert "Metadata handling rewrite" 2017-01-20 18:11:52 -08:00
Craig Tiller da9de8988b Merge github.com:grpc/grpc into maxmsgsz 2017-01-20 15:42:47 -08:00
Craig Tiller b7b7486c4b Merge github.com:grpc/grpc into metadata_filter 2017-01-20 11:31:47 -08:00
Vijay Pai aeee09eacc Merge pull request #8830 from vjpai/its_compat
C++11: Support compat with 1.0.x generated PB files
2017-01-19 14:07:05 -08:00
Craig Tiller 1d77059e4b Fix integer overflow 2017-01-19 11:44:42 -08:00
Vijay Pai 3cdee02893 Merge branch 'master' into its_compat 2017-01-19 10:42:08 -08:00
Craig Tiller 62f28bfcf0 Remove double-checking of max-message-size in C++ layers 2017-01-19 10:05:13 -08:00
Mark D. Roth f0e17783ae Add ChannelArguments methods for setting max send/recv message size. 2017-01-19 08:41:15 -08:00
Craig Tiller 81eceb31cc Remove bogus assert 2017-01-12 14:27:01 -08:00
yang-g 8a7a4462b1 merge with head 2017-01-11 13:13:23 -08:00
Craig Tiller 0d8e0b138d Merge github.com:grpc/grpc into fix_errors 2017-01-06 13:59:30 -08:00
Craig Tiller e519a03a1f Small improvements to generated documentation 2017-01-06 12:41:21 -08:00
yang-g de3b8a8efb Merge branch 'master' into health 2017-01-04 13:11:18 -08:00
yang-g 8bd6a0542b remove copyright from generated files 2017-01-04 13:10:30 -08:00
Craig Tiller 19cc2db3bc Merge branch 'slice_with_exec_ctx' into metadata_filter 2017-01-04 12:54:34 -08:00
Craig Tiller 709ce70908 Merge github.com:grpc/grpc into slice_with_exec_ctx 2017-01-04 12:53:58 -08:00
Craig Tiller 360f5d2abf Merge pull request #9207 from ctiller/cleanup_closures
Changes to exec_ctx/closure/combiner/workqueue interfaces
2017-01-04 12:53:20 -08:00
Craig Tiller 17f6904bad Merge branch 'slice_with_exec_ctx_and_new_closures' into metadata_filter_and_new_closures 2017-01-04 10:17:31 -08:00
Craig Tiller 0b09341461 Merge branch 'cleanup_closures' into slice_with_exec_ctx_and_new_closures 2017-01-03 09:49:07 -08:00
Craig Tiller 801c6cc548 Fix some NULL usage 2017-01-03 08:13:13 -08:00
yang-g b90631d3f0 more cleanup 2016-12-29 14:12:15 -08:00
yang-g 8e708b12cb WIP 2016-12-29 11:44:36 -08:00
yang-g 50993b7a4c async first take 2016-12-29 10:00:27 -08:00
yang-g f56c251af7 clang-format 2016-12-27 15:37:59 -08:00
yang-g 9bef0740a4 Add test for explicit option 2016-12-27 15:37:59 -08:00
yang-g ad32764219 sync test pass 2016-12-27 15:37:59 -08:00
yang-g c9d2954e55 more 2016-12-27 15:37:59 -08:00
yang-g 8d668d8324 default service 2016-12-27 15:37:59 -08:00
yang-g 6486883940 Add more files 2016-12-27 15:37:59 -08:00
yang-g 0498124f8e Add files 2016-12-27 15:37:59 -08:00
David G. Quintas 07383e7e28 Revert "Revert "Reduce memory bloat (each server cq is very expensive)"" 2016-12-17 17:07:37 -08:00
Vijay Pai 0e3f1f1e53 Support compat with old generated PB files 2016-12-13 20:03:53 -08:00
Craig Tiller 18b66a0df6 Revert "Reduce memory bloat (each server cq is very expensive)" 2016-12-12 15:23:41 -08:00
Sree Kuchibhotla e33daabb88 Merge branch 'master' into reduce_cq 2016-12-09 22:42:54 -08:00
Craig Tiller 78bc54e7d9 Fix stack corruption 2016-12-08 15:19:41 -08:00