Commit Graph

210 Commits

Author SHA1 Message Date
eshitachandwani 080f9563df
credentials, transport, grpc : add a call option to override the :authority header on a per-RPC basis (#8068) 2025-04-30 14:41:28 +05:30
Doug Fawley 0af5a164e0
grpc: fix bug causing an extra Read if a compressed message is the same size as the limit (#8178) 2025-03-18 15:08:29 -07:00
Doug Fawley 3409a56e78
cleanup: rename fields for clarity (#8043) 2025-01-28 07:55:05 -08:00
Arjan Singh Bal 35cec50d2b
grpc: Fix encoded message size reported in error message (#8033) 2025-01-24 10:23:17 +05:30
vinothkumarr227 8cf8fd1433
grpc: fix message length checks when compression is enabled and maxReceiveMessageSize is MaxInt (#7918) 2025-01-23 10:38:25 -08:00
Doug Fawley c63aeef126
transport: add send operations to ClientStream and ServerStream (#7808) 2024-11-20 15:40:17 -08:00
Easwar Swaminathan 0775031253
cleanup: remove a TODO that has been take care of (#7855) 2024-11-19 14:22:45 -08:00
Mikhail Mazurskiy ee3fb2982c
cleanup: use SliceBuffer directly where no pool is available (#7827) 2024-11-18 15:47:51 -08:00
Mikhail Mazurskiy 60c70a4361
mem: implement `ReadAll()` for more efficient `io.Reader` consumption (#7653) 2024-11-11 16:02:57 -08:00
Doug Fawley 2a18bfcb16
transport: refactor to split ClientStream from ServerStream from common Stream functionality (#7802) 2024-11-04 13:42:38 -08:00
Purnesh Dixit 04e78b0faf
.*: fix lint issues of not having comments for exported funcs and vars along with any remaining issues and enable remaining disabled rules (#7575)
* .*: fix lint issues of not having comments for exported funcs and vars along with any remaining issues and enable remaining disabled rules
2024-09-16 09:09:49 +05:30
Arvind Bright 8320224ff0
.*: revive from unused_parameters (#7577) 2024-08-30 10:41:30 -07:00
Paul Chesnais 9ab8b62505
Implement new Codec that uses `mem.BufferSlice` instead of `[]byte` (#7356) 2024-08-21 14:11:39 -07:00
Gayathri625 6d0aaaec1d
grpc: make client report `Internal` status when server response contains unsupported encoding (#7461) 2024-08-06 10:57:21 -07:00
Doug Fawley 566aad1ffd
examples/retry: remove waitForReady from service config (#7450) 2024-07-29 11:06:54 -07:00
Aaron Gable bb9882e6ae
Add an optional implementation of streams using generics (#7057) 2024-05-03 10:51:39 -07:00
Doug Fawley 55cd7a68b3
channelz: major cleanup / reorganization (#6969) 2024-03-15 11:13:53 -07:00
Jaewan Park 5ccf176a08
rpc_util: Fix RecvBufferPool deactivation issues (#6766) 2024-02-23 15:49:17 -05:00
Zach Reyes 29997a0cbc
grpc: Add StaticMethod CallOption (#6926) 2024-02-15 15:16:14 -05:00
James Roper 3a8270f8b6
grpc: skip compression of empty messages (#6842)
Fixes #6831.

This avoids compressing messages that are empty, since you can't compress zero
bytes to anything smaller than zero bytes, and most compression algorithms
output headers and trailers which means the resulting message will be non-zero
bytes.
2024-01-09 10:18:23 -08:00
Doug Fawley fe1519ecf7
client: fix ClientStream.Header() behavior (#6557) 2023-08-18 08:05:48 -07:00
Doug Fawley fbff2abb0f
*: update `interface{}` to `any` and `go.mod` version to `go 1.19` (#6544) 2023-08-14 09:04:46 -07:00
Jaewan Park 1634254ac6
rpc_util: Reuse memory buffer for receiving message (#5862) 2023-06-27 08:58:10 -07:00
Zach Reyes f31168468f
stats/opencensus: New uncompressed metrics and align with tracing spec (#6051) 2023-03-03 17:21:40 -05:00
Zach Reyes abff344ead
stats/opencensus: Add per call latency metric (#6017) 2023-02-16 17:33:17 -05:00
Mikhail Mazurskiy 379a2f676c
*: add missing colon to errorf messages to improve readability (#5911) 2023-01-17 16:11:47 -08:00
Simon Kotwicz 974a5ef804
grpc: document defaults in MaxCallMsgSize functions (#5916) 2023-01-11 14:07:56 -05:00
Theodore Salvo f2fbb0e07e
Deprecate use of `ioutil` package (#5906)
Resolves https://github.com/grpc/grpc-go/issues/5897
2023-01-03 11:20:20 -08:00
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Uddeshya Singh ea068ed2e6
rpc_util: Change error message to indicate size after decompression (#4918) 2021-11-11 09:52:54 -08:00
Doug Fawley 1ddab33869
client: fix detection of whether IO was performed in NewStream (#4611)
For transparent retry.

Also allow non-WFR RPCs to retry indefinitely on errors that resulted in no I/O; the spec used to forbid it at one point during development, but it no longer does.
2021-07-23 10:37:18 -07:00
Evan Jones 8bdcb4c9ab
client: Clarify that WaitForReady will block for CONNECTING channels (#4477) 2021-06-01 08:54:43 -07:00
Doug Fawley 62adda2ece
client: fix ForceCodec to set content-type header appropriately (#4401) 2021-05-11 17:05:16 -07:00
Mikhail Mazurskiy d2d6bdae07
server: add ForceServerCodec() to set a custom encoding.Codec on the server (#4205) 2021-05-06 09:40:54 -07:00
Doug Fawley 938f6e2f75
cmd/protoc-gen-go-grpc: add gRPC-Go version comment and update release version (#4152) 2021-01-14 14:28:25 -08:00
Garrett Gutierrez 4be647f7f6
internal/resolver/unix: Implemented unix resolver. (#3890) 2020-10-16 11:52:54 -07:00
Gaurav Gahlot d9063e7af3
standardized experimental warnings (#3917) 2020-10-02 09:11:08 -07:00
Easwar Swaminathan a3740e5ed3
grpc: Bump up support package version. (#3818)
This was missed out in https://github.com/grpc/grpc-go/pull/3816.
2020-08-14 13:07:10 -07:00
Menghan Li 9aa97f9cb4
stream: fix calloption.After() race in finish (#3672) 2020-06-10 18:00:24 -07:00
Doug Fawley 6b9bf4296e
Revert "profiling: add hooks within grpc (#3159)" (#3378)
This reverts commit 83263d17f7.
2020-02-14 07:56:46 -08:00
Adhityaa Chandrasekar 83263d17f7
profiling: add hooks within grpc (#3159) 2020-02-12 11:10:44 -08:00
Ben Wells 979f0a2f08
client: clarify units of send/receive message size call options (#3354) 2020-02-06 15:40:53 -08:00
Doug Fawley 7afcfdd66b
client: add interface for ClientConn to be accepted by generated code (#3334) 2020-01-24 14:49:31 -08:00
Bryan Boreham dcd1c9748d Use exact size, if known, to allocate decompression buffer (#3048)
For large messages this generates far less garbage than ioutil.ReadAll().

Implement for gzip - RFC1952 requires it, and the Go implementation
checks it already (modulo 2^32).
2019-10-04 10:05:56 -07:00
Prannay Khosla 8260df7a61 grpc: implementation of PreparedMsg API
grpc: implementation of PreparedMsg API
2019-04-19 14:08:08 -07:00
Menghan Li 01e57758bc
grpc: limit reader with maxReceiveMessageSize (#2617)
fixes #2616
2019-02-07 13:32:00 -08:00
Doug Fawley d14ffaeb5c
client: deprecate CallCustomCodec and provide new version using encoding.Codec (#2556) 2019-02-01 10:21:31 -08:00
Sebastiaan van Stijn e441557ee9 rpc_util: update deprecated messages (#2545)
The status package now has `Convert()` and `Code()` utilities.

This patch updates the deprecation description for `ErrorDesc()` and
`Code()` to recommend using those functions, and forward the deprecated
functions to use the `status.Code()` and `status.Convert()` functions.
2019-01-07 13:45:27 -08:00
Can Guler 29a7ac4deb
client: deprecates FailFast & replaces its use by WaitForReady. 2018-12-13 15:15:11 -08:00
Doug Fawley 59a2cfbdf9
Remove support for Go1.6-1.8 (#2428) 2018-11-01 15:43:42 -07:00