VirtualBox

Changeset 95298 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jun 16, 2022 7:57:27 AM (2 years ago)
Author:
vboxsync
Message:

Shared Folders/Host service: When a client disconnects, make sure that outstanding change waits are being canceled. See comment for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/VBoxSharedFoldersSvc.cpp

    r93444 r95298  
    180180{
    181181    RT_NOREF1(u32ClientID);
    182     int rc = VINF_SUCCESS;
    183182    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
    184183
    185     Log(("SharedFolders host service: disconnected, u32ClientID = %u\n", u32ClientID));
     184    /* When a client disconnects, make sure that outstanding change waits are being canceled.
     185     *
     186     * Usually this will be done actively by VBoxService on the guest side when shutting down,
     187     * but the VM could be reset without having VBoxService the chance of cancelling those waits.
     188     *
     189     * This in turn will eat up the call completion handle restrictions on the HGCM host side, throwing assertions. */
     190    int rc = vbsfMappingsCancelChangesWaits(pClient);
     191
     192    Log(("SharedFolders host service: disconnected, u32ClientID = %u, rc = %Rrc\n", u32ClientID, rc));
    186193
    187194    vbsfDisconnect(pClient);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette