Skip to content

recv should not block if the read stream is closed #11

Description

@lukius

When calling recv on a socket whose underlying read stream is already closed (i.e., a FIN from its peer was successfully received and acknowledged), a PTCError informing about this should be raised. Currently, however, the calling thread blocks waiting for incoming data. This behavior is clearly not correct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions