Skip to content
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

CallBidiStream: How can a client actively close a connection? #2755

Open
zhangcunli opened this issue Dec 3, 2024 · 0 comments
Open

CallBidiStream: How can a client actively close a connection? #2755

zhangcunli opened this issue Dec 3, 2024 · 0 comments

Comments

@zhangcunli
Copy link

Environment

  • Server: Dubbo-go, v3.2.0-rc2
  • Client: Dubbo-go, v3.3.0
  • Protocol: Triple
  • Registry: zookeeper

Issue description

  1. How can a client actively close a connection?
  2. My code like this:
        //var biStream *triple_protocol.BidiStreamForClient
	for ; ; {
		err := biStream.Receive(response)
		if err != nil {
			break
		}
        }
  1. If the biStream.Receive not return err, My code will block for ever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant