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

fix stream close #2

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

mr-linch
Copy link
Contributor

@mr-linch mr-linch commented Oct 4, 2023

resolve #1

  • use bufio.ReadWriter for send close event
  • add net.Conn to Stream
  • add test for close

Copy link
Member

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only 1 small doc fix.

stream.go Outdated Show resolved Hide resolved
Co-authored-by: Oleg Kovalov <oleg@hey.com>
Signed-off-by: Sasha Savchuk <sasha@bots.house>
Copy link
Member

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cristaloleg cristaloleg merged commit 253c117 into cristalhq:main Oct 5, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

Can't close connection server-side
2 participants