dyad icon indicating copy to clipboard operation
dyad copied to clipboard

Dyad forcibly closes sockets on shutdown

Open fatcerberus opened this issue 10 years ago • 0 comments

When dyad_shutdown() is called, all outstanding streams have dyad_close() called on them. This prevents any data recently written to the stream--for example, a message indicating the session is ending--not to be received on the other end. It would be nicer if instead, shutdown could flush write buffers before closing the streams.

This could be optional, as the current behavior may be preferable in some circumstances.

fatcerberus avatar Nov 05 '15 06:11 fatcerberus