Changeset 39465 in vbox
- Timestamp:
- Nov 30, 2011 1:17:13 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r39248 r39465 1218 1218 i32AliasMode |= (i32MainAliasMode & 0x2 ? 0x40 : 0); 1219 1219 i32AliasMode |= (i32MainAliasMode & 0x4 ? 0x4 : 0); 1220 int i32SoMaxConn = 1 ;1220 int i32SoMaxConn = 10; 1221 1221 GET_S32(rc, pThis, pCfg, "SoMaxConnection", i32SoMaxConn); 1222 1222 /* -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r39444 r39465 605 605 tcp_sndspace = 64 * _1K; 606 606 tcp_rcvspace = 64 * _1K; 607 /** 608 * Assignment here has only meaning, to avoid additional noise in release log 609 * the value set from DrvNAT in function slirp_set_somaxcon, reading CFGM key 610 * "VBoxInternal/Devices/<adapter name>/0/LUN#0/Config/SoMaxConnection" or setting 611 * default value 10 (xTracker/5983) in case value for the key wasn't found. 612 */ 607 613 pData->soMaxConn = 10; 608 614 … … 2012 2018 if (iSoMaxConn > SOMAXCONN) 2013 2019 { 2014 LogRel(("N ewvalue of somaxconn(%d) bigger than SOMAXCONN(%d)\n", iSoMaxConn, SOMAXCONN));2020 LogRel(("NAT: value of somaxconn(%d) bigger than SOMAXCONN(%d)\n", iSoMaxConn, SOMAXCONN)); 2015 2021 iSoMaxConn = SOMAXCONN; 2016 2022 } 2017 pData->soMaxConn = iSoMaxConn > 0 ? iSoMaxConn : pData->soMaxConn; 2018 if (pData->soMaxConn > 1) 2019 LogRel(("New value of somaxconn: %d\n", pData->soMaxConn)); 2023 if (pData->soMaxConn != iSoMaxConn) 2024 { 2025 LogRel(("NAT: value of somaxconn has been changed from %d to %d\n", 2026 pData->soMaxConn, iSoMaxConn)); 2027 pData->soMaxConn = iSoMaxConn; 2028 } 2020 2029 LogFlowFuncLeave(); 2021 2030 }
Note:
See TracChangeset
for help on using the changeset viewer.