We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents819f9d1 +1cc90bb commit8d2374eCopy full SHA for 8d2374e
netconn.go
@@ -94,22 +94,25 @@ func NetConn(ctx context.Context, c *Conn, msgType MessageType) net.Conn {
94
}
95
96
typenetConnstruct {
97
+// These must be first to be aligned on 32 bit platforms.
98
+// https://github.com/nhooyr/websocket/pull/438
99
+readExpiredint64
100
+writeExpiredint64
101
+
102
c*Conn
103
msgTypeMessageType
104
-writeTimer*time.Timer
-writeMu*mu
-writeExpiredint64
-writeCtx context.Context
-writeCancel context.CancelFunc
105
-
106
-readTimer*time.Timer
107
-readMu*mu
108
-readExpiredint64
109
-readCtx context.Context
110
-readCancel context.CancelFunc
111
-readEOFedbool
112
-reader io.Reader
+writeTimer*time.Timer
+writeMu*mu
+writeCtx context.Context
+writeCancel context.CancelFunc
+readTimer*time.Timer
+readMu*mu
+readCtx context.Context
113
+readCancel context.CancelFunc
114
+readEOFedbool
115
+reader io.Reader
116
117
118
var_ net.Conn=&netConn{}