VirtualBox

Changeset 89947 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 29, 2021 10:42:28 AM (4 years ago)
Author:
vboxsync
Message:

X11: Host Services: Shared Clipboard: improve error code path handling, bugref:10038.

This commit improves error code path handling for X11 part of host Shared Clipboard
service. In particular, it adjusts initialization calls to match to its de-init counterpart.
It also adds more resources release on error path. In addition, this commit limits number of
simmultaneous HGCM connections to ShCl host service in order to prevent potential host flooding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-x11.h

    r87566 r89947  
    3838# include <VBox/GuestHost/SharedClipboard-transfers.h>
    3939#endif
     40
     41/**
     42 * The maximum number of simultaneous connections to shared clipboard service.
     43 * This constant limits amount of GUEST -> HOST connections to shared clipboard host service
     44 * for X11 host only. Once amount of connections reaches this number, all the
     45 * further attempts to CONNECT will be dropped on an early stage. Possibility to connect
     46 * is available again after one of existing connections is closed by DISCONNECT call.
     47 */
     48#define VBOX_SHARED_CLIPBOARD_X11_CONNECTIONS_MAX   (20)
    4049
    4150/** Enables the Xt busy / update handling. */
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