VirtualBox

Ignore:
Timestamp:
Jan 31, 2017 2:12:47 PM (8 years ago)
Author:
vboxsync
Message:

Main/USBProxyBackendUsbIp: Don't quit working if reconnecting fails but just try again after some waiting because the server might be not reachable temporarily.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp

    r63563 r65542  
    541541                /* Try to reconnect and start a new request if we lost the connection before. */
    542542                if (m->hSocket == NIL_RTSOCKET)
     543                {
    543544                    rc = reconnect();
    544 
    545                 if (RT_SUCCESS(rc))
    546                     rc = startListExportedDevicesReq();
     545                    if (RT_SUCCESS(rc))
     546                        rc = startListExportedDevicesReq();
     547                    else if (   rc == VERR_NET_SHUTDOWN
     548                             || rc == VERR_BROKEN_PIPE
     549                             || rc == VERR_NET_CONNECTION_RESET_BY_PEER
     550                             || rc == VERR_NET_CONNECTION_REFUSED)
     551                        rc = VINF_SUCCESS;
     552                }
    547553            }
    548554        }
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