nim-chronos/chronos/transports
Jacek Sieka bb4c3298f5
fix crash after reading from fd > 1024 (#267)
The socket selector holds a `seq` of per-descriptor data. When a reader
is registered, a pointer to a seq item is stored - when the `seq` grows,
this pointer becomes dangling and causes crashes like
https://github.com/status-im/nimbus-eth2/issues/3521.

It turns out that there already exist two mechanisms for passing user
data around - this PR simply removes one of them, saving on memory usage
and removing the need to store pointers to the `seq` data that become
dangling on resize.
2022-04-11 11:56:30 +02:00
..
common.nim Fix documentation build (#258) 2022-01-26 20:56:22 +01:00
datagram.nim fix crash after reading from fd > 1024 (#267) 2022-04-11 11:56:30 +02:00
ipnet.nim Export async-related imports to allow partial imports. (#218) 2021-08-26 14:22:29 +03:00
osnet.nim style fixes (#253) 2022-01-04 23:14:30 +01:00
stream.nim fix crash after reading from fd > 1024 (#267) 2022-04-11 11:56:30 +02:00