I have a reasonably standard router dealer set up. The server is using router sockets though and many thousands of clients connect using dealer sockets with a pre agreed identity. This way I can route messages through to individual clients from the server. So far so good.
But I've found that if I cut off the clients by killing the process or pulling out the network cable some of the sockets are left open on the server (not of all them but a few) in the established state.
I can't figure a decent way of getting to the underlying sockets to shut them down so it seems we have a resource leak?