When the HGFS server running in the tools is left with any sessions
open due to the clients not terminating them cleanly they will be marked
inactive. The HGFS server callback to invalidate them will periodically
be called and after a brief period will terminate those sessions.
These sessions are not closed first, thus triggering the assert in the
session exit function which checks the session's state.
Fix is to close the inactive sessions being terminated in the HGFS
server invalidate callback.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
if (session->isInactive) {
if (session->numInvalidationAttempts == MAX_SESSION_INVALIDATION_ATTEMPTS) {
+ LOG(4, ("%s: closing inactive session %"FMT64"x\n", __FUNCTION__,
+ session->sessionId));
+ session->state = HGFS_SESSION_STATE_CLOSED;
HgfsServerTransportRemoveSessionFromList(transportSession,
session);
/*