Commit Graph

11 Commits

Author SHA1 Message Date
mochi
6550b8d680 8bit align struct fields 2022-01-28 21:05:50 +00:00
Rob Kennedy
fce495f83e Avoid race condition when closing listeners
"Atomic load" followed by "atomic store" is not itself an atomic
operation. This commit replaces that sequence with CompareAndSwap
instead.
2022-01-25 00:22:26 -06:00
Rob Kennedy
471ca00a64 Make atomics work on 32-bit systems
On 32-bit systems, `atomic` requires its 64-bit arguments to have 64-bit
alignment, but the compiler doesn't help ensure that's the case. In this
commit, fields that don't need to hold large numbers have been converted
to 32-bit types, which are always aligned correctly on all platforms.
For fields that may hold large numeric values, padding has been added to
get the necessary alignment, and tests have been added to avoid
regressions.
2022-01-25 00:22:26 -06:00
clark
514288c53e update tcp.go maybe this will be better 2022-01-16 20:06:49 +08:00
clark
957fc0a049 fix local variable black hole 2022-01-16 18:23:45 +08:00
mochi
060fbffa79 Update comments for clarity 2022-01-05 13:14:15 +00:00
Mochi
e96ef0170d Code and Comments cleanup, vendor deps 2020-02-08 13:24:31 +00:00
Mochi
5073246818 Adds TLS/SSL 2020-01-04 22:02:39 +00:00
Mochi
0eaa111383 Don't receive $SYS retained on # 2020-01-03 15:49:52 +00:00
Mochi
be4240b371 Http Sys Stats listener 2019-12-31 16:33:50 +00:00
Mochi
b6184987e8 Restructures code 2019-12-31 15:02:16 +00:00