RE: [PATCH] rsocket: Return ECONNRESET when socket in recv is disconnected

Hefty, Sean
2014-10-08T23:38:30Z

> stackoverflow suggets:
>
> http://stackoverflow.com/questions/2974021/what-does-econnreset-mean-in-
> the-context-of-an-af-local-socket
>
> Which looks reasonable to me and matches my experience with socket
> programming on Linux. The Steven's book might have some authoritative
> clarifications on the subject as well.
>
> It certainly is not correct to unconditionally return ECONNRESET for
> reads on far-end-closed sockets, they should typically return 0.

Thanks for the info.