async_sock: return -1/EPIPE if we're getting an end of file on read.