Treat 'Premature EOF' error on async stream as DISCONNECTED.
Unfortunately TCP does not always distinguish between dirty connection failure and clean connection shutdown. In practice, though, "Premature EOF" errors on streams basically always appear to be due to disconnects (including when the peer crashes).
Showing
Please
register
or
sign in
to comment