Skip to content

Support half-open duplex streams #27

Description

@clue

React PHP has support for both bidirectional duplex streams and unidirectional half-duplex streams.

  • A unidirectional readable stream should close once it can no longer be read.
  • A unidirectional writable stream should close once it can no longer be written to.
  • A bidirectional duplex stream currently closes once if can either no longer be read or no longer be written to.

We should add an option to allow bidirectional duplex streams to be half-open. In this mode the readable and writable state would be checked independently.

This is particularly useful for some TCP/IP-based protocols where the client sends a FIN message to the server indicating that it will no longer write any data but is still willing to accept incoming data.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions