mirror of
https://github.com/xtaci/smux.git
synced 2026-10-21 03:27:21 +00:00
upd
This commit is contained in:
@@ -59,13 +59,13 @@ READ:
|
||||
select {
|
||||
case <-s.chNotifyReader:
|
||||
goto READ
|
||||
case <-s.die:
|
||||
return 0, errors.New("broken pipe")
|
||||
}
|
||||
}
|
||||
|
||||
// Write implements io.ReadWriteCloser
|
||||
func (s *Stream) Write(b []byte) (n int, err error) {
|
||||
s.mu.Lock()
|
||||
defer s.mu.Unlock()
|
||||
frames := s.split(b, cmdPSH, s.id)
|
||||
for k := range frames {
|
||||
bts, _ := frames[k].MarshalBinary()
|
||||
|
||||
Reference in New Issue
Block a user