We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a59b2 commit bf0d5acCopy full SHA for bf0d5ac
session.go
@@ -14,6 +14,7 @@ import (
14
const (
15
defaultAcceptBacklog = 1024
16
maxShaperSize = 1024
17
+ openCloseTimeout = 30 * time.Second // stream open/close timeout
18
)
19
20
var (
@@ -514,7 +515,7 @@ func (s *Session) sendLoop() {
514
515
// writeFrame writes the frame to the underlying connection
516
// and returns the number of bytes written if successful
517
func (s *Session) writeFrame(f Frame) (n int, err error) {
- return s.writeFrameInternal(f, time.After(s.config.KeepAliveTimeout), 0)
518
+ return s.writeFrameInternal(f, time.After(openCloseTimeout), 0)
519
}
520
521
// internal writeFrame version to support deadline used in keepalive
0 commit comments