You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using smux.Stream for reading and writing in two concurrency goroutines. After all data written, the stream.Close is called for ending writing.
The method stream.Read running at the local endpoint will get an error broken pipe immediately. Reading at the remote endpoint will get io.EOF as expected. Even I call stream.Close when EOF reached, the local endpoint still get the broken pipe error.
I read the source code of smux. It seems that smux does not support half closing a stream. Any idea to avoid the broken pipe issue?
The text was updated successfully, but these errors were encountered:
I am using smux.Stream for reading and writing in two concurrency goroutines. After all data written, the
stream.Close
is called for ending writing.The method stream.Read running at the local endpoint will get an error
broken pipe
immediately. Reading at the remote endpoint will getio.EOF
as expected. Even I callstream.Close
when EOF reached, the local endpoint still get the broken pipe error.I read the source code of smux. It seems that smux does not support half closing a stream. Any idea to avoid the broken pipe issue?
The text was updated successfully, but these errors were encountered: