mirror of
https://github.com/netchx/netch.git
synced 2026-01-25 13:02:30 +08:00
[Redirector] TCP Keep Alive
This commit is contained in:
@@ -41,7 +41,7 @@ SOCKET SocksHelper::Connect()
|
||||
{
|
||||
DWORD returned = 0;
|
||||
|
||||
tcp_keepalive data = { 1, 120, 10 };
|
||||
tcp_keepalive data = { 1, 120000, 10000 };
|
||||
WSAIoctl(client, SIO_KEEPALIVE_VALS, &data, sizeof(data), NULL, 0, &returned, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user