From 1cc90bb49096127bb51ee1bfe860bdee099e94d8 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 7 Mar 2024 11:39:07 -0800 Subject: [PATCH] netconn: Explain why we start with the two int64 atomics --- netconn.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netconn.go b/netconn.go index 133ba55f..3324014d 100644 --- a/netconn.go +++ b/netconn.go @@ -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