Skip to content

Handling ECONNRESET #97

Open
Open
@daurnimator

Description

@daurnimator

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions