• Kenton Varda's avatar
    Treat 'Premature EOF' error on async stream as DISCONNECTED. · fe3e3657
    Kenton Varda authored
    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).
    fe3e3657
gzip.c++ 5.69 KB