VirtualBox

Changeset 16758 in vbox


Ignore:
Timestamp:
Feb 14, 2009 4:34:12 AM (16 years ago)
Author:
vboxsync
Message:

NAT:backed r42762, with description what exactly expected to do here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r16726 r16758  
    400400                char ch[1];
    401401                size_t cbRead;
     402                int counter = 0;
    402403                /*
    403404                 * drvNATSend decoupled so we don't know how many times
     
    406407                 *
    407408                 * @todo: Probably we should counter drvNATSend to count how
    408                  * deep pipe has been filed before drain
     409                 * deep pipe has been filed before drain.
     410                 *
     411                 * XXX:Make it reading exactly we need to drain the pipe.
    409412                 */
    410                 while(RTFileRead(pThis->PipeRead, &ch, 1, &cbRead) > 0);
     413                RTFileRead(pThis->PipeRead, &ch, 1, &cbRead);
    411414            }
    412415            /* process _all_ outstanding requests but don't wait */
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