containerd / ttrpc

GRPC for low-memory environments
Apache License 2.0
559 stars 80 forks source link

[release/1.1] server: Fix connection leak when receiving ECONNRESET #136

Closed dmcgowan closed 1 year ago

dmcgowan commented 1 year ago

The ttrpc server somtimes receives ECONNRESET rather than EOF when the client is exited. Such as reading from a closed connection. Handle it properly to avoid goroutine and connection leak.

Backport of #136 Fix for branch used by containerd 1.6