VirtualBox

Changeset 16085 in vbox for trunk/src


Ignore:
Timestamp:
Jan 20, 2009 2:27:46 PM (16 years ago)
Author:
vboxsync
Message:

NAT: delay hack

File:
1 edited

Legend:

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

    r16083 r16085  
    329329    DWORD   event;
    330330    HANDLE  *phEvents;
     331    unsigned int cBreak;
    331332# endif
    332333
     
    394395        /* process _all_ outstanding requests but don't wait */
    395396        RTReqProcess(pThis->pReqQueue, 0);
     397#  ifdef VBOX_NAT_DELAY_HACK
     398        if (cBreak++ > 64)
     399        {
     400            cBreak = 0;
     401            RTThreadSleep(2);
     402        }
     403#  endif
    396404# endif /* RT_OS_WINDOWS */
    397405    }
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