Open
Description
How should applications handle ECONNRESET
? it seems like it should be very similar to EPIPE
Behaviour from http://stackoverflow.com/a/2979806/282536:
# Side A # Side B
s = TCPServer.new('127.0.0.1', 3001)
c = s.accept
c = TCPSocket.new('127.0.0.1', 3001)
c.write("hello")
c.close
c.read
# Linux: ECONNRESET
# OS X : returns 0 bytes
The trouble is the internal EOF flag in cqueues doesn't get set in this circumstance.