Commit Graph

1389 Commits

Author SHA1 Message Date
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Yihua Zhang a887f35a9b add a new struct - grpc_ssl_verify_peer_options and an API - grpc_ssl_credentials_create_ex. 2019-05-30 16:00:50 -07:00
Vijay Pai 64528cdf4d
Merge pull request #18915 from MrMage/patch-1
Add `void` arguments to two function declarations.
2019-05-13 22:49:39 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Vijay Pai cb8c4afdea Resolve consistency checks 2019-05-09 15:21:42 +02:00
Alex Polcyn b0db0f3fb4 Lazily load protobuf from the grpc ruby errors module 2019-05-06 20:57:28 +00:00
apolcyn cdbab7bd72
Merge pull request #18752 from blowmage/bad_status-to_rpc_status
[Ruby]  Add BadStatus#to_rpc_status
2019-04-26 18:16:33 -07:00
Mike Moore 5f30da6dd1
Update variable names in spec 2019-04-22 16:35:07 -06:00
Mike Moore abcdf2d183
Party like its 2015 2019-04-22 16:32:26 -06:00
Mike Moore b47f2048b8
Log ParseError raised in BadStatus#to_rpc_status 2019-04-18 22:26:39 -06:00
Mike Moore 0fa7cf9194
Update Add BadStatus#to_status documentation 2019-04-18 03:02:31 -06:00
Mike Moore 71db662452
Add tests for error methods 2019-04-18 03:01:28 -06:00
Mike Moore 7afc6dbae3
Update BadStatus#to_rpc_status
Change the implementation to no longer raise when the rpc_status
protobuf value cannot be properly decoded.
Update the documentation.
2019-04-18 03:00:37 -06:00
Mike Moore f370542dd6
Add BadStatus#to_rpc_status 2019-04-13 14:36:36 -06:00
SataQiu 44f92cdd17 clean up repeated words 2019-04-10 16:25:25 +08:00
Lidi Zheng 0231bf3b01 Regenerate projects 2019-03-29 16:24:50 -07:00
Soheil Hassas Yeganeh ad1b3e5094 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()

This commit reaplies 509e77a5a3
2019-03-21 06:03:45 -04:00
Stanley Cheung 0a8fbd2a67 Fix broken php7 performance benchmarks build 2019-03-18 15:12:46 -07:00
Jan Tattermusch b667c2f72f regenerate ruby protos 2019-03-12 05:09:46 -04:00
Soheil Hassas Yeganeh c060d55cc7
Revert "Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing." 2019-03-05 14:01:01 -05:00
Soheil Hassas Yeganeh 509e77a5a3 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()
2019-03-04 14:17:46 -05:00
yang-g 456f748b2f Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
This reverts commit 9079e98dfc, reversing
changes made to 76a38bfcc2.
2019-02-25 10:11:06 -08:00
Yang Gao 4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread" 2019-02-22 16:34:24 -08:00
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
apolcyn aa207933cb
Merge pull request #16240 from mattolson/fix-default-pool-keep-alive
Ruby: Fix default pool keep alive
2019-02-14 23:22:45 -08:00
yang-g 545c555d31 Rename new public API 2019-02-14 14:22:40 -08:00
Srini Polavarapu f7f6861720
Merge pull request #18033 from srini100/master
Bump master to v1.20.x and pick "godric" for that release
2019-02-13 12:17:12 -08:00
yang-g 233406d450 generate projects 2019-02-13 11:29:40 -08:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Alexander Polcyn 5c85f5a1a0 Ruby: refactor init/shutdown logic to avoid using atexit; fix windows 2019-02-10 16:14:19 -08:00
Yihua Zhang a3d997cbdc Add a TLS credential surface API (experimental) 2019-01-29 10:04:28 -08:00
apolcyn 9ed8734efb
Merge pull request #17606 from matoro/master
Ruby tooling: respect user toolchain overrides
2019-01-24 00:06:05 -08:00
matoro 6ca6a06075 Ruby tooling: respect user toolchain overrides
While compilation flag overrides for the Ruby native extension are
currently functional, specifying an alternate compiler is not, as the
Rbconfig values for key toolchain binaries are hardcoded at compile time
of the Ruby interpreter.  This patch allows them to be overrridden on
the command line via standard environment variables, defaulting to the
Rbconfig values only if unspecified by the user.
2019-01-23 16:40:41 +00:00
Jan Tattermusch 5a6c984d3a clang format code 2019-01-08 16:06:38 +01:00
Christopher Warrington 832e5f06c3 Fix typos in comments 2019-01-07 17:36:14 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
apolcyn fc7d0911a3
Merge pull request #17348 from toc007/ruby-sigint
server graceful shutdown for pull request
2018-12-26 13:23:29 -08:00
Tommy Chen 39ac83a49e ruby-sigint ready to be merged! 2018-12-26 11:17:48 -08:00
Jan Tattermusch b904fdaa40 do not use server override in ruby interop client by default 2018-12-20 14:49:54 +01:00
ncteisen 7b1fc0faa2 Add max_results to ServerSockets 2018-12-11 08:24:40 -08:00
apolcyn 63c9e43c2a
Merge pull request #17295 from ganmacs/fix-misc
Fix ruby code style
2018-12-02 21:01:32 -08:00
ganmacs 79f58ec74e Use space 2018-11-26 19:51:07 +09:00
ganmacs b5ee54add3 Remove unused require 2018-11-26 19:50:50 +09:00
ganmacs bd1fdfaabe Return unimplemented
when calling a method which is server_streamer and is not implemented by user
2018-11-25 17:31:53 +09:00
Muxi Yan f3e4ae633e Regenerate projects 2018-11-19 15:24:53 -08:00
ncteisen 693f46841a Add GetServer to core 2018-10-24 17:31:30 -07:00
apolcyn da5d02fb4d
Merge pull request #16921 from apolcyn/move_package_options_test
Move ruby test's package_options.proto file to ruby-specific directory
2018-10-18 17:07:52 -07:00
Alexander Polcyn f6e8417627 Move package_options.proto file for ruby test 2018-10-17 19:44:52 -07:00