Commit Graph

216 Commits

Author SHA1 Message Date
Easwar Swaminathan a03c7f1faa
client: always enable TCP keepalives with OS defaults (#6834) 2023-12-07 14:04:31 -08:00
Carlos Ruiz 591c48187c
internal/transport: Add LocalAddr to http2Client.getPeer() (#6779) 2023-11-10 08:49:14 -08:00
Jayden Teoh f1a1fcd042
grpc: disable and document overrides of OS default TCP keepalive by Go (#6672)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
2023-11-07 13:49:01 -08:00
Fabian Holler 70f1a4045d
grpc: Wait until resources finish cleaning up in Stop() and GracefulStop() (#6489) 2023-10-31 13:12:43 -04:00
Zach Reyes c76d75f4f9
grpc: Move some stats handler calls to gRPC layer, and add local address to peer.Peer (#6716) 2023-10-25 18:01:05 -04:00
Doug Fawley f2180b4d54
server: prohibit more than MaxConcurrentStreams handlers from running at once (#6703) 2023-10-10 10:51:45 -07:00
Peter Štibraný be7919c3dc
transport: Pass Header metadata to tap handle. (#6652) 2023-10-05 14:08:13 -04:00
Doug Fawley e3f1514cdb
Reapply "status: fix/improve status handling (#6662)" (#6673) (#6688) 2023-10-05 08:20:01 -07:00
Doug Fawley 9e1fc3e9c0
Revert "status: fix/improve status handling (#6662)" (#6673) 2023-10-02 12:52:25 -07:00
Doug Fawley 0772ed7355
status: fix/improve status handling (#6662) 2023-10-02 09:54:42 -07:00
Zach Reyes 8eb4ac4c15
grpc: Change server stream context handling (#6598) 2023-09-01 15:00:56 -04: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
Doug Fawley a0100790d9
*: remove references to old versions of go (#6545) 2023-08-11 14:14:47 -07:00
Sergey Matyukevich 9bb44fbf2e
transport: use a sync.Pool to share per-connection write buffer (#6309) 2023-07-20 15:28:06 -07:00
Tobo Atchou e8599844e7
server: with TLS, set TCP user timeout on the underlying raw connection (#5646) (#6321) 2023-06-27 09:27:20 -07:00
Tobo Atchou 56b33d5cd0
server/transport: send appropriate debug_data in GOAWAY frames (#6220) 2023-05-03 09:58:06 -07:00
Ernest Nguyen Hung 7dfd71831d
internal/buffer: add Close method to the Unbounded buffer type (#6161) 2023-04-18 16:53:59 -07:00
Easwar Swaminathan a8a25ce994
transport: use prefix logging (#6135) 2023-03-22 09:20:36 -07:00
Doug Fawley 7651e62090
transport: add a draining state check before creating streams (#6142) 2023-03-21 13:58:51 -07:00
Doug Fawley b458a4f11a
transport: stop always closing connections when loopy returns (#6110) 2023-03-14 13:32:25 -07:00
Arvind Bright 11e2506cb6
tests: Scale down keepalive test timings (#6088) 2023-03-14 10:40:00 -07:00
Doug Fawley ad4057fcc5
transport: stop returning errors that are always nil (#6098) 2023-03-08 13:40:47 -08:00
Easwar Swaminathan 0586c51d1b
internal/transport: reduce running time of test from 5s to 1s (#6061) 2023-02-28 09:34:05 -08:00
Zach Reyes 7437662fd5
internal/transport: Fix flaky keep alive test (#6059) 2023-02-27 20:31:24 -05:00
大可 d655f404da
internal/transport: fix severity of log when receiving a GOAWAY with error code ENHANCE_YOUR_CALM (#5935) 2023-02-08 16:36:09 -05:00
horpto b81e8b62c9
metadata: slightly improve operateHeaders (#6008) 2023-02-08 13:27:02 -08:00
Arvind Bright e9d9bd0436
tests: reduce the degree of stress testing in long running tests (#6003) 2023-02-08 13:03:14 -08:00
Ronak Jain 0954097276
server: expose API to set send compressor (#5744)
Fixes https://github.com/grpc/grpc-go/issues/5792
2023-01-31 13:27:34 -08:00
Doug Fawley 2a1e9348ff
server: after GracefulStop, ensure connections are closed when final RPC completes (#5968)
Fixes https://github.com/grpc/grpc-go/issues/5930
2023-01-25 16:28:29 -08:00
Joshua Humphries 9b9b381270
server: fix a few issues where grpc server uses RST_STREAM for non-HTTP/2 errors (#5893)
Fixes https://github.com/grpc/grpc-go/issues/5892
2023-01-18 12:59:58 -08:00
Arvind Bright 9326362a37
transport: fix maxStreamID to align with http2 spec (#5948) 2023-01-18 10:05:46 -08:00
Mikhail Mazurskiy 379a2f676c
*: add missing colon to errorf messages to improve readability (#5911) 2023-01-17 16:11:47 -08:00
Arvind Bright 6de8f50f91
transport: drain client transport when streamID approaches maxStreamID (#5889)
Fixes https://github.com/grpc/grpc-go/issues/5600
2023-01-11 12:58:00 -08:00
Arvind Bright 07ac97c355
transport: simplify httpClient by moving onGoAway func to onClose (#5885) 2022-12-21 15:44:31 -06:00
Zach Reyes 9373e5cb26
transport: Fix closing a closed channel panic in handlePing (#5854) 2022-12-13 15:44:03 -05:00
Sean Barag 2f413c4548
transport/http2: use HTTP 400 for bad requests instead of 500 (#5804) 2022-12-13 11:31:23 -08:00
Zach Reyes a9709c3f8c
Added logs for reasons causing connection and transport close (#5840) 2022-12-08 19:44:23 -05:00
Doug Fawley 99ba98231e
transport/server: flush GOAWAY before closing conn due to max age (#5821)
Fixes https://github.com/grpc/grpc-go/issues/4859
2022-12-01 09:02:41 -08:00
Doug Fawley 20c937eebe
transport: limit AccountCheck tests to fewer streams and iterations to avoid flakes (#5828)
Fixes https://github.com/grpc/grpc-go/issues/5283
2022-11-30 17:07:48 -08:00
Doug Fawley 3011eaf70e
test/tools: update staticcheck version to latest (#5806) 2022-11-18 13:51:43 -08:00
wby 0238b6e1ce
transport: new stream with actual server name (#5748) 2022-11-18 08:57:37 -08:00
Zach Reyes 36d14dbf66
Fix binary logging bug which logs a server header on a trailers only response (#5763) 2022-11-02 19:46:50 -04:00
Easwar Swaminathan fdcc01b8c1
transport/test: implement staticcheck suggestion (#5752) 2022-10-31 16:50:41 -07:00
Doug Fawley 9127159caf
client: synchronously verify server preface in newClientTransport (#5731) 2022-10-20 09:29:17 -07:00
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Ronak Jain 7b817b4d18
client: set grpc-accept-encoding to full list of registered compressors (#5541) 2022-10-11 16:37:02 -07:00
Doug Fawley 12db695f16
grpc: restrict status codes from control plane (gRFC A54) (#5653) 2022-10-04 15:13:23 -07:00
Tobias Klauser 1451c62ccd
internal/transport: optimize grpc-message encoding/decoding (#5654) 2022-10-04 13:29:30 -04:00
Zach Reyes b1d7f56b81
transport: Fix deadlock in transport caused by GOAWAY race with new stream creation (#5652)
* transport: Fix deadlock in transport caused by GOAWAY race with new stream creation
2022-09-21 14:35:08 -04:00