VirtualBox

Ignore:
Timestamp:
Dec 13, 2022 5:09:09 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154872
Message:

DnD/HostService: Reset handling fixes: Don't reset (clear) the service's internal message queue when a new (HGCM) client connects. Reconnecting the client will happen on a VM restore (as the VM guest session changed), causing the message queue to be cleared, eventually running into host-side timeouts for the very first drag'n drop action performed after a VM restore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/DragAndDrop/VBoxDragAndDropSvc.cpp

    r97789 r97797  
    262262    }
    263263
    264 
    265264    /*
    266265     * Add client to our client map.
     
    283282        return VERR_NO_MEMORY;
    284283    }
    285 
    286     /*
    287      * Reset the message queue as soon as a new client connects
    288      * to ensure that every client has the same state.
    289      */
    290     if (m_pManager)
    291         m_pManager->Reset(true /* fForce */);
    292284
    293285    LogFlowFunc(("Client %RU32 connected (VINF_SUCCESS)\n", idClient));
Note: See TracChangeset for help on using the changeset viewer.

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