Changeset 100176 in vbox
- Timestamp:
- Jun 14, 2023 12:21:32 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecServiceTcp.cpp
r99775 r100176 221 221 if (RT_SUCCESS(rc)) 222 222 { 223 uint32_t cSecsIdle = 75; /* idle time in seconds before first keep-alive probe */ 224 uint32_t cSecsInterval = 30; /* interval in seconds between keep-alive probes */ 225 uint32_t cFailedPktsBeforeClose = 4; /* number of unacknowledged keep-alive probes before closing connection */ 226 rc = RTTcpSetKeepAlive(hTcpClient, true /* fEnable */, cSecsIdle, cSecsInterval, cFailedPktsBeforeClose); 227 if (RT_FAILURE(rc)) 228 RTMsgInfo("Failed to set SO_KEEPALIVE on client socket hTcpClient: rc=%Rrc\n", rc); 223 229 hTcpClient = txsTcpSetClient(hTcpClient); 224 230 RTTcpClientCloseEx(hTcpClient, true /* fGracefulShutdown*/);
Note:
See TracChangeset
for help on using the changeset viewer.