Browse Source

if a stream is timedout release its stream id

Chris Bannister 10 năm trước cách đây
mục cha
commit
d6104e3987
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      conn.go

+ 1 - 0
conn.go

@@ -348,6 +348,7 @@ func (c *Conn) recv() error {
 	select {
 	case call.resp <- err:
 	case <-call.timeout:
+		c.releaseStream(head.stream)
 	case <-c.quit:
 	}