Commit Graph

1408 Commits

Author SHA1 Message Date
Esun Kim a67213158c Use -static-libstdc++ for ruby.linux 2019-10-04 15:56:47 -07:00
tanjunchen 64cdea5a07 fix some spelling mistakes in document 2019-10-04 09:07:35 +08:00
chentanjun 05b3eeff77 fix-up some spelling mistakes 2019-09-25 23:29:47 +08:00
Esun Kim cf444b9cab Regenerate projects 2019-09-10 14:08:50 -07:00
Esun Kim 49b9fb2b3c Enable C++ standard library 2019-09-03 09:27:54 -07:00
apolcyn 79fc2e5c56
Merge pull request #19939 from blowmage/ruby-struct-status-rb
Define Struct::Status in Ruby
2019-08-15 23:48:21 -07:00
Mike Moore 0f8dced6c4
Define Struct::Status in Ruby
Update error end2end test for loading when calling to_status.
Update error end2end test for loading when calling to_rpc_status.
2019-08-15 17:34:51 -06:00
apolcyn 4a1ef56a54
Merge pull request #19940 from jbolinger/fix-rubyname-gen
Allow Ruby style (::) package names in Ruby codegen
2019-08-15 13:53:25 -07:00
Joe Bolinger f463965084 Allow :: in ruby_package 2019-08-15 09:45:47 -07:00
apolcyn 460ccabf27
Merge pull request #19893 from blowmage/ruby-load-errors-early
Allow loading grpc/errors.rb before grpc.rb
2019-08-13 11:54:18 -07:00
Mike Moore b132c34c61
Allow loading grpc/errors before grpc 2019-08-13 10:36:07 -06:00
Yihua Zhang ae863630d5 Add spiffe client-side credential reload 2019-08-12 14:12:13 -07:00
Esun Kim f88bd06ee5 Go UPB! 2019-08-06 15:27:14 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
apolcyn 8b71bd082e
Merge pull request #19585 from michaelherold/dont-require-relative-for-absolute-path
Don't require_relative for an absolute path
2019-07-17 09:58:54 -07:00
apolcyn 8cd016f597
Merge pull request #18913 from sat0yu/sat0yu/fix-typo
Fix a typo in the GRPC::RpcServer constructor description
2019-07-15 00:15:43 -07:00
Michael Herold 957fc7bab7
Don't require_relative for an absolute path
Ruby's `require_relative` method currently converts paths to absolute
paths. This idiosyncrasy means that the implementation of the require
for the distributed shared library works, however the semantics do not
mesh with the semantics of `require_relative`.

This is an issue when you redefine `require_relative` and follow the
semantics of the method, as [derailed_benchmarks does][1]. This means
that any project that uses `grpc` also cannot use that project (which
I will also be patching).

In the event that a new version of Ruby follows the semantics of the
method (whether or not that is likely), this will break as well.

By switching to `require` here instead of `require_relative`, we
maintain the functionality but do not use a semantically incompatible
method to do so.

[1]: 1b0c425720/lib/derailed_benchmarks/core_ext/kernel_require.rb (L24-L27)
2019-07-08 16:15:27 -05:00
Julien Boeuf 189c2c8c30 Adding support for STS Token Exchange Creds in core:
- IETF specification is available here:
https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16
2019-06-26 12:48:05 -07:00
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
Yusuke Sato 7d55a8a904 Fix a typo in the GRPC::RpcServer constructor description 2019-04-30 15:25:05 +09: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