VirtualBox

Changeset 32085 in vbox for trunk/src


Ignore:
Timestamp:
Aug 30, 2010 11:41:20 AM (14 years ago)
Author:
vboxsync
Message:

FT fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/FTM.cpp

    r32084 r32085  
    136136VMMR3DECL(int) FTMR3Term(PVM pVM)
    137137{
     138    if (pVM->ftm.s.master.hShutdownEvent != NIL_RTSEMEVENT)
     139        RTSemEventDestroy(pVM->ftm.s.master.hShutdownEvent);
     140    if (pVM->ftm.s.hSocket != NIL_RTSOCKET)
     141        RTTcpClientClose(pVM->ftm.s.hSocket);
     142    if (pVM->ftm.s.standby.hServer)
     143        RTTcpServerDestroy(pVM->ftm.s.standby.hServer);
    138144    if (pVM->ftm.s.pszAddress)
    139145        RTMemFree(pVM->ftm.s.pszAddress);
    140146    if (pVM->ftm.s.pszPassword)
    141147        RTMemFree(pVM->ftm.s.pszPassword);
    142     if (pVM->ftm.s.hSocket != NIL_RTSOCKET)
    143         RTTcpClientClose(pVM->ftm.s.hSocket);
    144     if (pVM->ftm.s.standby.hServer)
    145         RTTcpServerDestroy(pVM->ftm.s.standby.hServer);
    146     if (pVM->ftm.s.master.hShutdownEvent != NIL_RTSEMEVENT)
    147         RTSemEventDestroy(pVM->ftm.s.master.hShutdownEvent);
    148148
    149149    PDMR3CritSectDelete(&pVM->ftm.s.CritSect);
     
    660660         * Try connect to the standby machine.
    661661         */
     662        Log(("ftmR3MasterThread: client connect to %s %d\n", pVM->ftm.s.pszAddress, pVM->ftm.s.uPort));
    662663        rc = RTTcpClientConnect(pVM->ftm.s.pszAddress, pVM->ftm.s.uPort, &pVM->ftm.s.hSocket);
    663664        if (RT_SUCCESS(rc))
    664665        {
     666            Log(("ftmR3MasterThread: CONNECTED\n"));
     667
    665668            /* Disable Nagle. */
    666669            rc = RTTcpSetSendCoalescing(pVM->ftm.s.hSocket, false /*fEnable*/);
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