Skip to content

fix: connection early termination resulting in internal error#2160

Open
benmcclelland wants to merge 1 commit into
mainfrom
ben/eof-err
Open

fix: connection early termination resulting in internal error#2160
benmcclelland wants to merge 1 commit into
mainfrom
ben/eof-err

Conversation

@benmcclelland
Copy link
Copy Markdown
Member

When the connection terminates before all bytes read, we were getting an io.ErrUnexpectedEOF that was not being handled as a standard io.EOF resulting in an internal error being raised. Translate io.ErrUnexpectedEOF to io.EOF so that we return the normal errors for unexpected content. Add a log message so that its clear the error is due to the connection being terminated before all data sent and not the fault of the gateway.

When the connection terminates before all bytes read, we were
getting an io.ErrUnexpectedEOF that was not being handled as
a standard io.EOF resulting in an internal error being raised.
Translate io.ErrUnexpectedEOF to io.EOF so that we return the
normal errors for unexpected content. Add a log message so
that its clear the error is due to the connection being
terminated before all data sent and not the fault of the
gateway.
@benmcclelland benmcclelland requested a review from niksis02 May 30, 2026 03:59
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.

1 participant