talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
702 stars 17 forks source link

Pending timers should be tracked by the IO context #120

Closed sergiu128 closed 6 months ago

sergiu128 commented 7 months ago

For Linux, by fd. For BSD, by address. Currently no timer is tracked so if it goes out of scope, it may get GC'ed and we will lose the timer event.