Skip to content

Commit 46a59b2

Browse files
committed
only keep writeFrame with a default timeout
1 parent dbf64f5 commit 46a59b2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

session.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,6 @@ func (s *Session) sendLoop() {
480480
binary.LittleEndian.PutUint16(buf[2:], uint16(len(request.frame.data)))
481481
binary.LittleEndian.PutUint32(buf[4:], request.frame.sid)
482482

483-
// set timeout conn
484-
if tconn, ok := s.conn.(interface{ SetWriteDeadline(t time.Time) error }); ok {
485-
tconn.SetWriteDeadline(time.Now().Add(s.config.KeepAliveTimeout))
486-
}
487-
488483
if len(vec) > 0 {
489484
vec[0] = buf[:headerSize]
490485
vec[1] = request.frame.data

0 commit comments

Comments
 (0)