VirtualBox

Changeset 26817 in vbox for trunk


Ignore:
Timestamp:
Feb 26, 2010 7:20:32 AM (15 years ago)
Author:
vboxsync
Message:

NAT: applied patch from xtracker 4710 (fix graceful connection termination on Windows hosts)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r26574 r26817  
    11551155         * in some cases once FD_CLOSE engaged on socket it could be flashed latter (for some reasons)
    11561156         */
    1157         if (    CHECK_FD_SET(so, NetworkEvents, closefds)
    1158             ||  (so->so_close == 1))
    1159         {
    1160             so->so_close = 1; /* mark it */
     1157        if (   CHECK_FD_SET(so, NetworkEvents, closefds)
     1158            || (so->so_close == 1))
     1159        {
    11611160            /*
    11621161             * drain the socket
     
    11671166                if (ret > 0)
    11681167                    TCP_OUTPUT(pData, sototcpcb(so));
    1169                 else
     1168                else 
    11701169                    break;
    11711170            }
     1171            /* mark the socket for termination _after_ it was drained */
     1172            so->so_close = 1;
    11721173            CONTINUE(tcp);
    11731174        }
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