-
-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
Description
React PHP has support for both bidirectional duplex streams and unidirectional half-duplex streams.
- A unidirectional readable stream should
closeonce it can no longer be read. - A unidirectional writable stream should
closeonce 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.