VirtualBox

Ignore:
Timestamp:
Oct 23, 2015 12:35:35 PM (9 years ago)
Author:
vboxsync
Message:

VMM/GIM: Implement Hyper-V debug receive thread optimization. Added a few statistics to GIM.
Fixed a bug in Windows guests' debug DHCP handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/GIMDev/DrvUDP.cpp

    r57989 r58390  
    8080    {
    8181        size_t cbReallyRead = 0;
    82         rc = RTSocketReadNB(pThis->hSocket, pvBuf, *pcbRead, &cbReallyRead);
     82        rc = RTSocketRead(pThis->hSocket, pvBuf, *pcbRead, &cbReallyRead);
    8383        if (RT_SUCCESS(rc))
    8484            *pcbRead = cbReallyRead;
     
    103103    if (pThis->hSocket != NIL_RTSOCKET)
    104104    {
    105         size_t cbReallyWritten = 0;
    106         rc = RTSocketWriteNB(pThis->hSocket, pvBuf, *pcbWrite, &cbReallyWritten);
     105        size_t cbBuf = *pcbWrite;
     106        rc = RTSocketWriteToNB(pThis->hSocket, pvBuf, cbBuf, NULL /*pDstAddr*/);
    107107        if (RT_SUCCESS(rc))
    108             *pcbWrite = cbReallyWritten;
     108            *pcbWrite = cbBuf;
    109109    }
    110110    else
     
    147147    if (pThis->hSocket != NIL_RTSOCKET)
    148148    {
     149        RTSocketRetain(pThis->hSocket);
     150        RTSocketShutdown(pThis->hSocket, true, true);
    149151        RTSocketClose(pThis->hSocket);
    150152        pThis->hSocket = NIL_RTSOCKET;
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