Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fe95bb

Browse files
committed
write.go: Fix potential writeFrame deadlock
Closes#405You should always be reading from the connection with CloseRead so this shouldn'thave affected anyone using the library correctly.
1 parent6cec2ca commit5fe95bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎write.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ func (c *Conn) writeFrame(ctx context.Context, fin bool, flate bool, opcode opco
280280
err=errClosed
281281
case<-ctx.Done():
282282
err=ctx.Err()
283+
default:
283284
}
284285
c.close(err)
285286
err=fmt.Errorf("failed to write frame: %w",err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp