containerd / ttrpc

GRPC for low-memory environments
Apache License 2.0
536 stars 78 forks source link

Unwrap IO errors in server connection error handling #141

Closed austinvazquez closed 1 year ago

austinvazquez commented 1 year ago

Fixes #142

Unwrap io.EOF and io.ErrUnexpectedEOF in server connection receive error handling. When read message errors occurs, the error is wrapped to be more distinguishable from read message header errors; however, without unwrapping the errors here the result would be leaked server connections for connections where the client is now gone.

Signed-of-by: Austin Vazquez macedonv@amazon.com

austinvazquez commented 1 year ago

@dmcgowan ptal related to https://github.com/containerd/ttrpc/pull/136