Skip to content

Do not return EOF directly, returning nil will send EOF to client#142

Merged
temporal-nick merged 2 commits intomainfrom
nick/eoffix
Aug 25, 2025
Merged

Do not return EOF directly, returning nil will send EOF to client#142
temporal-nick merged 2 commits intomainfrom
nick/eoffix

Conversation

@temporal-nick
Copy link
Collaborator

What was changed

Removed the code that tries to manually send EOF to the client.

Why?

gRPC will handle sending io.EOF itself when the stream handler exits, and if you try to return an EOF yourself, gRPC will actually wrap that in UnknownError, which is not at all what we wanted here.

@temporal-nick temporal-nick requested a review from pglass August 22, 2025 23:33
@temporal-nick temporal-nick requested a review from a team as a code owner August 22, 2025 23:33
@temporal-nick temporal-nick merged commit 62369b4 into main Aug 25, 2025
6 checks passed
@temporal-nick temporal-nick deleted the nick/eoffix branch August 25, 2025 16:01
hai719 pushed a commit to hai719/s2s-proxy that referenced this pull request Nov 24, 2025
…mporalio#142)

* Do not return EOF directly, returning nil will send EOF to client

* Fix lint
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.

2 participants