mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
always timeout for writeFrame
This commit is contained in:
+1
-1
@@ -519,7 +519,7 @@ func (s *Session) sendLoop() {
|
||||
// writeFrame writes the frame to the underlying connection
|
||||
// and returns the number of bytes written if successful
|
||||
func (s *Session) writeFrame(f Frame) (n int, err error) {
|
||||
return s.writeFrameInternal(f, nil, 0)
|
||||
return s.writeFrameInternal(f, time.After(s.config.KeepAliveTimeout), 0)
|
||||
}
|
||||
|
||||
// internal writeFrame version to support deadline used in keepalive
|
||||
|
||||
Reference in New Issue
Block a user