open-nomad/helper/pool
Mahmood Ali 2c73552b4d
pool: track usage of incoming streams (#10710)
Track usage of incoming streams on a connection. Connections without
reference counts get marked as unused and reaped in a periodic job.

This fixes a bug where `alloc exec` and `alloc fs` sessions get terminated
unexpectedly. Previously, when a client heartbeats switches between
servers, the pool connection reaper eventually identifies the connection
as unused and closes it even if it has an active exec/fs sessions.

Fixes #10579
2021-06-07 10:22:37 -04:00
..
conn.go
pool.go pool: track usage of incoming streams (#10710) 2021-06-07 10:22:37 -04:00
pool_test.go pool: track usage of incoming streams (#10710) 2021-06-07 10:22:37 -04:00