-
-//
-// Synchronously end a Connection.
-// This is due to a request from the client, so no thread races are possible.
-// In practice, this is optional since the DPN for the client thread reply port
-// will destroy the connection anyway when the thread dies.
-//
-void Server::endConnection(Port replyPort)
-{
- StLock<Mutex> _(*this);
- PortMap<Connection>::iterator it = mConnections.find(replyPort);
- assert(it != mConnections.end());
- it->second->terminate();
- mConnections.erase(it);
-}
-
-