- Timestamp:
- Aug 17, 2018 6:17:59 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124427
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tcp_subr.c
r72284 r73746 416 416 opt = 1; 417 417 setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&opt, sizeof(opt)); 418 opt = 1; 419 setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(opt)); 418 420 419 421 ret = sobind(pData, so); … … 551 553 opt = 1; 552 554 setsockopt(s, SOL_SOCKET, SO_OOBINLINE,(char *)&opt, sizeof(int)); 553 #if 0554 555 opt = 1; 555 556 setsockopt(s, IPPROTO_TCP, TCP_NODELAY,(char *)&opt, sizeof(int)); 556 #endif557 557 558 558 optlen = sizeof(int); -
trunk/src/VBox/NetworkServices/NAT/proxy.c
r69500 r73746 359 359 } 360 360 #endif 361 362 /* 363 * Disable the Nagle algorithm. Otherwise the host may hold back 364 * packets that the guest wants to go out, causing potentially 365 * horrible performance. The guest is already applying the Nagle 366 * algorithm (or not) the way it wants. 367 */ 368 if (stype == SOCK_STREAM) { 369 int on = 1; 370 const socklen_t onlen = sizeof(on); 371 372 status = setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&on, onlen); 373 if (status < 0) { 374 DPRINTF(("TCP_NODELAY: %R[sockerr]\n", SOCKERRNO())); 375 closesocket(s); 376 return INVALID_SOCKET; 377 } 378 } 361 379 362 380 #if defined(RT_OS_WINDOWS)
Note:
See TracChangeset
for help on using the changeset viewer.