Skip to content

Mid-stream I/O errors are silently ignored in TCP proxy and other network filters #13939

@PiotrSikora

Description

@PiotrSikora

Mid-stream I/O errors (e.g. Connection reset by peer) are never propagated out of transport sockets, and connections terminated because of those errors are closed exactly the same way as in case of a clean shutdown, which results in silent truncation, and the information about that is not available in neither %CONNECTION_TERMINATION_DETAILS%, %UPSTREAM_TRANSPORT_FAILURE_REASON%, nor %RESPONSE_FLAGS%.

While some L7 network filters can detect premature connection termination because of truncated and/or missing frames, L4 network filters (e.g. TCP proxy) are completely lost here.

cc @alyssawilk @antoniovicente @ggreenway @kyessenov

Metadata

Metadata

Assignees

Labels

bugstalestalebot believes this issue/PR has not been touched recently

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions