Skip to content

Commit

Permalink
netconn: Explain why we start with the two int64 atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Mar 7, 2024
1 parent 4c27331 commit 1cc90bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ func NetConn(ctx context.Context, c *Conn, msgType MessageType) net.Conn {
}

type netConn struct {
// These must be first to be aligned on 32 bit platforms.
// https://github.com/nhooyr/websocket/pull/438
readExpired int64
writeExpired int64

Expand Down

0 comments on commit 1cc90bb

Please sign in to comment.