VirtualBox

Changeset 16815 in vbox for trunk/src


Ignore:
Timestamp:
Feb 17, 2009 7:26:09 AM (16 years ago)
Author:
vboxsync
Message:

NAT: Another yet Graceful connection termination case in MS networking

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

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

    r16789 r16815  
    988988            /*
    989989             * Check for FD_CLOSE events.
     990             * in some cases once FD_CLOSE engaged on socket it could be flashed latter (for some reasons)
    990991             */
    991             if (NetworkEvents.lNetworkEvents & FD_CLOSE)
    992             {
     992            if (    (NetworkEvents.lNetworkEvents & FD_CLOSE)
     993                ||  (so->so_close == 1))
     994            {
     995                so->so_close = 1; /* mark it */
    993996                /*
    994997                 * drain the socket
     
    10021005                        break;
    10031006                }
     1007                CONTINUE(tcp);
    10041008            }
    10051009#endif
  • trunk/src/VBox/Devices/Network/slirp/socket.h

    r16572 r16815  
    7373#if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && !defined(RT_OS_WINDOWS)
    7474    int so_poll_index;
     75#endif
     76#if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS)
     77    /*
     78     * FD_CLOSE event has been occured on socket
     79     */
     80    int so_close;
    7581#endif
    7682};
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