On 2023-12-08 17:29:45 -0500, Tom Lane wrote: > Andres Freund <and...@anarazel.de> writes: > >> I think I figured it it out. Looks like we need to translate a closed > >> socket > >> (recvfrom() returning 0) to ECONNRESET or such. > > > Seems like we should just treat errno == 0 as a reason to emit the "EOF > > detected" message? > > Agreed. I think we want to do that after the initial handshake, > too, so maybe as attached.
I was wondering about that too. But if we do so, why not also do it for writes?