VirtualBox

Changeset 60745 in vbox for trunk


Ignore:
Timestamp:
Apr 28, 2016 3:47:49 PM (9 years ago)
Author:
vboxsync
Message:

Main/USBProxyBackendUsbIp: Start over if the server sends garbage instead of stopping, some logging adjustments

File:
1 edited

Legend:

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

    r60744 r60745  
    523523                else if (rc == VERR_NET_SHUTDOWN || rc == VERR_BROKEN_PIPE)
    524524                {
    525                     LogRelMax(10, ("USB/IP: Lost connection to host \"%s\", trying to reconnect...\n", m->pszHost));
     525                    Log(("USB/IP: Lost connection to host \"%s\", trying to reconnect...\n", m->pszHost));
    526526                    disconnect();
    527527                    rc = VINF_SUCCESS;
     
    685685        rc = RTTcpSetSendCoalescing(m->hSocket, false);
    686686        if (RT_FAILURE(rc))
    687             LogRel(("USB/IP: Disabling send coalescing failed (rc=%Rrc), continuing nevertheless but expect increased latency\n", rc));
     687            LogRelMax(5, ("USB/IP: Disabling send coalescing failed (rc=%Rrc), continuing nevertheless but expect increased latency\n", rc));
    688688
    689689        rc = RTPollSetAddSocket(m->hPollSet, m->hSocket, RTPOLL_EVT_READ | RTPOLL_EVT_ERROR,
     
    695695        }
    696696        else
    697             LogRel(("USB/IP: Connected to host \"%s\"\n", m->pszHost));
     697            LogFlowFunc(("Connected to host \"%s\"\n", m->pszHost));
    698698    }
    699699
     
    833833                               RT_N2H_U16(m->Scratch.RetDevList.u16Version), RT_N2H_U16(m->Scratch.RetDevList.u16Cmd),
    834834                               RT_N2H_U32(m->Scratch.RetDevList.u32Status)));
    835                 rc = VERR_INVALID_STATE;
     835                /* Disconnect and start over. */
     836                advanceState(kUsbIpRecvState_None);
     837                disconnect();
     838                rc = VERR_NET_SHUTDOWN;
    836839            }
    837840            break;
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