mirror of
https://github.com/netchx/netch.git
synced 2026-04-03 19:35:10 +08:00
[Redirector] TCP Keep Alive
This commit is contained in:
@@ -38,6 +38,13 @@ SOCKET SocksHelper::Connect()
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
{
|
||||
DWORD returned = 0;
|
||||
|
||||
tcp_keepalive data = { 1, 120, 10 };
|
||||
WSAIoctl(client, SIO_KEEPALIVE_VALS, &data, sizeof(data), NULL, 0, &returned, NULL, NULL);
|
||||
}
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user