How to stop InterprocessConnectionServer


#1

Hi all,
when an InterprocessConnectionServer is stopped, the created connections are still active. I see in the code, that the IPC server doen’t keep track of it’s connetions.

Wouldn’t it be good, if the IPC server had a Array of WeakReferences, so it could optionally call threadShouldExit() on all connections, when an InterprocessConnectionServer::stop() is called.

I would write a patch for that, if wanted.

Thanks,
Daniel


#2

Just realized, that the ownership is not defined, so I will have to keep track in the inherited class anyway.
Just realized that I was leaking here.
Sorry for bothering…