VirtualBox

Changeset 25754 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 12, 2010 11:42:06 AM (15 years ago)
Author:
vboxsync
Message:

NAT: xtracker 4583: hopefully fix 100% CPU load with NAT under certain circumstances

File:
1 edited

Legend:

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

    r25265 r25754  
    363363        && tp->t_state >= TCPS_FIN_WAIT_2)
    364364        soisfdisconnected(tp->t_socket);
    365     if (tp)
     365    /*
     366     * (vasily) there're situations when the FIN or FIN,ACK are lost (Windows host)
     367     * and retransmitting keeps VBox busy on sending closing sequences *very* frequent,
     368     * easting a lot of CPU. To avoid this we don't sent on sockets marked as closed
     369     * (see slirp.c for details about setting so_close member).
     370     */
     371    if (   tp
     372#ifdef RT_OS_WINDOWS
     373        && tp->t_socket
     374        && !tp->t_socket->so_close
     375#endif
     376        )
    366377        tcp_output(pData, tp);
    367378}
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