mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
- connEntry.isIdle(now, threshold): caller supplies now instead of time.Since - connRegistry.closeIdle(now, threshold): passes now through to isIdle - trackingConn gains a clock func() time.Time field used in Read/Write - handleConn takes clock func() time.Time; uses it to init lastRead/lastWrite and passes it to trackingConn - Call sites in main pass time.Now or time.Now() explicitly Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>