VirtualBox

Changeset 16726 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 13, 2009 5:16:48 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42762
Message:

NAT: avoiding "false alarms"

File:
1 edited

Legend:

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

    r16653 r16726  
    400400                char ch[1];
    401401                size_t cbRead;
    402                 RTFileRead(pThis->PipeRead, &ch, 1, &cbRead);
     402                /*
     403                 * drvNATSend decoupled so we don't know how many times
     404                 * device's thread sends before we've entered multiplex,
     405                 * so to avoid false alarm drain pipe here to the very end
     406                 *
     407                 * @todo: Probably we should counter drvNATSend to count how
     408                 * deep pipe has been filed before drain
     409                 */
     410                while(RTFileRead(pThis->PipeRead, &ch, 1, &cbRead) > 0);
    403411            }
    404412            /* process _all_ outstanding requests but don't wait */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette