Commit Graph

266 Commits

Author SHA1 Message Date
jovial 0027558c5d
internal/transport: replace integer status codes with http constants (#7910) 2024-12-10 15:23:27 +05:30
Doug Fawley c63aeef126
transport: add send operations to ClientStream and ServerStream (#7808) 2024-11-20 15:40:17 -08:00
Purnesh Dixit 36d5ca0fae
stats: deprecate trace and tags methods and remove all usages from internal code (#7837) 2024-11-19 09:37:12 +05:30
Mikhail Mazurskiy ee3fb2982c
cleanup: use SliceBuffer directly where no pool is available (#7827) 2024-11-18 15:47:51 -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
Doug Fawley 70e8931a0e
transport: remove useless trampoline function (#7801) 2024-11-01 14:43:55 -07:00
Marco Ferrer 52d7f6af60
multiple: switch to math/rand/v2 (#7711)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
2024-10-29 10:43:58 -07:00
luxcgo ec10e73f02
transport: refactor `trInFlow.onData` to eliminate redundant logic (#7734) 2024-10-16 13:09:35 -07:00
eshitachandwani b850ea533f
transport : wait for goroutines to exit before transport closes (#7666) 2024-10-10 15:34:25 +05:30
Abhishek Ranjan d365be6b21
transport: prevent deadlock in transport Close when GoAway write hangs (#7662) 2024-10-08 11:48:33 +05:30
Arjan Singh Bal bcf9171a20
transport: Fix reporting of bytes read while reading headers (#7660) 2024-09-23 21:39:46 +05:30
Nathan Baulch 3b626a7b52
*: fix more typos (#7619) 2024-09-16 10:58:27 -07: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
janardhanvissa 3d95421758
Fix revive identified linter issues: var-declaration, indent-error-flow, increment-decrement, superfluous-else (#7528)
* Fixed linter issues for superfluous-else, increment-decrement, indent-error-flow, var-declaration

* Reverting context-as-argument in server.go

* Revert "Optimising the code by fixing var-declaration, indent-error-flow, increment-decrement, superfluous-else"

* Optimising the code by fixing var-declaration, indent-error-flow, increment-decrement, superfluous-else

* dummy commit for re-trigger
2024-08-23 17:00:29 +05:30
Paul Chesnais 9ab8b62505
Implement new Codec that uses `mem.BufferSlice` instead of `[]byte` (#7356) 2024-08-21 14:11:39 -07:00
Jonathan Halterman 6a5a283b69
Use builtin min and max functions (#7478)
* Use builtin min and max functions

Go added builtin min and max functions in 1.21. This commit removes existing functions and uses the built-ins in stead.

* Revert gofmt changes
2024-08-20 10:42:02 +05:30
Abhishek Ranjan 4e29cc6e31
transport: add timeout for writing GOAWAY on http2Client.Close() (#7371) 2024-08-16 14:57:44 -07:00
Ricardo Fernández 5d07b636a7
transport: change `*http2Client` to interface `ClientTransport` (#7512) 2024-08-15 09:09:27 -07:00
Easwar Swaminathan 6d7f07c99f
test/tools: update staticcheck version to latest (#7509) 2024-08-14 14:32:55 -07:00
Nathan Baulch c8951abc16
*: fix minor typos (#7487)
* Fix typos

* Fix reflecton tests
2024-08-14 22:43:01 +05:30
Ricardo Fernández 366decfd50
transport/grpchttp2: add http2.Framer bridge (#7453) 2024-08-13 14:35:29 -07:00
CharlesFeng f9b96b853c
internal/transport: Unlock mutex before panic (#7488) 2024-08-08 11:32:52 -07:00
Oleg Guba ffaa81e286
transport/bufWriter: fast-fail on error returned from flushKeepBuffer() (#7394) 2024-08-07 12:07:18 -07:00
Ricardo Fernández 1490d60f47
transport/grpchttp2: revert #7477 usage of mem package (#7485) 2024-08-07 10:46:54 -07:00
Ricardo Fernández e6b6318ad9
transport/grpchttp2: change types to include `mem` package (#7477) 2024-08-06 11:30:52 -07:00
Ricardo Fernández 6fa393c579
transport/grpchttp2: add doc to methods and values (#7445) 2024-07-31 12:55:04 -07:00
Arjan Singh Bal 0b33bfe786
transport: Discard the buffer when empty after http connect handshake (#7424)
* Discard the buffer when empty after http connect handshake

* configure the proxy to wait for server hello

* Extract test args to a struct

* Change deadline sets
2024-07-30 21:30:34 +05:30
Ricardo Fernández 0231b0d942
transport/grpcframer: create grpcframer package (#7397) 2024-07-22 17:10:02 -07:00
Easwar Swaminathan c04b085930
internal/transport: minor cleanup of controlBuffer code (#7319) 2024-06-17 07:41:12 -07:00
Arvind Bright 8bf2b3ee6e
grpcrand: delete all of grpcrand and call the rand package directly (#7283) 2024-05-31 11:32:53 -07:00
hakusai22 273fe145d0
*: fix typos (#7178) 2024-05-02 16:54:22 -07:00
Doug Fawley 5e0fa765ba
transport: make nextID accessed inside t.mu only (#7148) 2024-04-18 10:18:20 -07:00
Doug Fawley 54e0a1365b
transport: misc cleanups (#7147) 2024-04-18 10:10:47 -07:00
Abhishek Ranjan f268126950
Send GOAWAY to server on Client Transport Shutdown (#7015) 2024-04-17 14:20:12 -07:00
Doug Fawley ec257b4e1c
channelz: pass parent pointer instead of parent ID to RegisterSubChannel (#7101) 2024-04-08 10:01:16 -07:00
Kyle J Strand c31cec33dd
Fix: error message using correct keepalive config value (#7038) 2024-04-03 15:50:43 -07:00
Doug Fawley 55cd7a68b3
channelz: major cleanup / reorganization (#6969) 2024-03-15 11:13:53 -07:00
Sercan Değirmenci 76a23bf37a
fix enabling compression by trimming whitespaces in accept encoding header (#6952) 2024-02-20 15:12:22 -08:00
Anand Inguva 7525e9885f
test: add test for invalid streamID (#6940) 2024-02-20 11:15:18 -08:00
Joshua Humphries 40d6adb0cc
transport: Make error-handling for bad HTTP method consistent between HTTP/2 server transport and handler server transport (#6989) 2024-02-16 14:33:12 -05:00
Raghav Jhavar 3c2a44dca3
transport: when using write buffer pooling, use input size instead of size*2 (#6983) 2024-02-15 18:07:19 -05:00
Doug Fawley 28d78d4baf
*: forbid the use of time.After (#6985) 2024-02-15 09:18:03 -08:00
Doug Fawley 05db80f118
server: wait to close connection until incoming socket is drained (with timeout) (#6977) 2024-02-12 08:38:58 -08:00
Clément Jean 02858ee506
deps: move from github.com/golang/protobuf to google.golang.org/protobuf/proto (#6919)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Co-authored-by: Doug Fawley <dfawley@google.com>
2024-01-30 10:59:10 -08:00
Cheng Fang 8d735f01ad
internal/transport: Remove redundant if conditional in http2_server (#6946) 2024-01-29 17:37:15 -05:00
Vladimir Varankin 67e50be526
transport: Remove redundant if in handleGoAway (#6930) 2024-01-22 19:31:00 -05:00
Aditya Sood 987df13092
metadata: move FromOutgoingContextRaw() to internal (#6765)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
2024-01-18 09:55:32 -08:00
mustafasen81 6ce73bfbf9
internal/transport: convert `ConnectionError` to `Unavailable` status when writing headers (#6891) 2024-01-10 15:21:24 -08:00
Mile Druzijanic 4f03f3ff32
removing deprecated http closenotifier function (#6886) 2023-12-21 14:54:26 -08:00