-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServerStreamForClient.Close hangs forever #789
Comments
There are two improvements we could make here:
|
@jhump Hello, thank you for the fast answer! |
Yes. |
To be sure, I told about implementing that on connect lib side, and you? |
It is the same either way. But in the connect lib side:
|
Created a PR #791 to discuss a third solution. Changing the behavior of the client closures to be non-blocking. This may not be possible if the current behavior is relied upon but I think this optimization can still be implemented by clients calling receive until the stream is drained. |
Describe the bug
A client service needs to forcibly stop a server stream, but the Close method hangs indefinitely, preventing the connection-handling function from ever returning.
To Reproduce
And in
example_test.go
:Environment (please complete the following information):
connect-go
version or commit: v1.16.2go version
: go1.22.4go.mod
:The text was updated successfully, but these errors were encountered: