ni / grpc-device

gRPC server providing remote access to NI device driver APIs.
MIT License
71 stars 50 forks source link

Proposal to support reference counted sessions #1059

Closed paulolamas18 closed 5 months ago

paulolamas18 commented 5 months ago

What does this Pull Request accomplish?

Add the ability for users to add a reference count to named sessions

Why should this Pull Request be merged?

The name sessions feature of grpc-device is amazing but has one major inconvenience: Close() will close the sessions for everyone holding a reference to the named session

What testing has been done?

Added unit tests so far. Will add more tests if this draft looks reasonable