• Mahmood Ali's avatar
    pool: track usage of incoming streams (#10710) · 3f7a5c14
    Mahmood Ali authored
    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
    3f7a5c14