VirtualBox

Ignore:
Timestamp:
Aug 17, 2018 6:17:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124427
Message:

NAT/NATNet: Disable Nagle algorighm on the host using TCP_NODELAY (bugref:9226).

File:
1 edited

Legend:

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

    r72284 r73746  
    416416        opt = 1;
    417417        setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&opt, sizeof(opt));
     418        opt = 1;
     419        setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(opt));
    418420
    419421        ret = sobind(pData, so);
     
    551553    opt = 1;
    552554    setsockopt(s, SOL_SOCKET, SO_OOBINLINE,(char *)&opt, sizeof(int));
    553 #if 0
    554555    opt = 1;
    555556    setsockopt(s, IPPROTO_TCP, TCP_NODELAY,(char *)&opt, sizeof(int));
    556 #endif
    557557
    558558    optlen = sizeof(int);
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