All! I implemented a protocol as a ranch_protocol. It handles long running sessions. At some point I'd like to stop my server accepting new connections, but allow all open sessions to finish. Then I need to know when all the open sessions (if any) finished. What would be the correct strategy to implement this? Thanks, Janos