|
|
@ -379,7 +379,7 @@ func (s *Stream) CheckAlive() (n int) { |
|
|
|
v := val.(*PackWriterCloser) |
|
|
|
v := val.(*PackWriterCloser) |
|
|
|
if v.w != nil { |
|
|
|
if v.w != nil { |
|
|
|
//Alive from RWBaser, check last frame now - timestamp, if > timeout then Remove it
|
|
|
|
//Alive from RWBaser, check last frame now - timestamp, if > timeout then Remove it
|
|
|
|
if !v.w.Alive() && s.isStart { |
|
|
|
if !v.w.Alive() { |
|
|
|
log.Infof("write timeout remove") |
|
|
|
log.Infof("write timeout remove") |
|
|
|
s.ws.Delete(key) |
|
|
|
s.ws.Delete(key) |
|
|
|
v.w.Close(fmt.Errorf("write timeout")) |
|
|
|
v.w.Close(fmt.Errorf("write timeout")) |
|
|
|