We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c0c02 commit 8752f80Copy full SHA for 8752f80
transport/anytls/session/stream.go
@@ -40,7 +40,7 @@ func newStream(id uint32, sess *Session) *Stream {
40
// Read implements net.Conn
41
func (s *Stream) Read(b []byte) (n int, err error) {
42
n, err = s.pipeR.Read(b)
43
- if s.dieErr != nil {
+ if n == 0 && s.dieErr != nil {
44
err = s.dieErr
45
}
46
return
0 commit comments