You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
145907: rpc, server: properly handle DRPC stream context cancellations r=cthumuluru-crdb a=cthumuluru-crdb
The graceful way to cancel a stream in DRPC is to close the stream. When stream context is canceled, DRPC closes the underlying transport by default as we see `<manager closed>` errors as a result. storj/drpc@a5d487a/drpcmanager/manager.go#L363-L378
`SoftClose` option on the DRPC manager allows for reusing the underlying transport as long as it's not busy (active write). In our case, since the stream is idle and at any point in time only one stream can use a connection we can use that option to avoid too many connection reopens. storj/drpc@a5d487a/drpcmanager/manager.go#L348-L363
Fixes: #140670
Epic: CRDB-48929
Release note: none
Co-authored-by: Chandra Thumuluru <[email protected]>
0 commit comments