add time out on server socket

This commit is contained in:
Nikola Petrov 2025-02-05 23:01:34 +01:00
parent 9c3d550224
commit 2dd7500ec2

View File

@ -157,7 +157,7 @@ namespace TcpSocket
return -7; return -7;
} }
setTimeout(60, newSocketFileDescriptor);
std::thread t(callback, newSocketFileDescriptor, newSocketInfo); std::thread t(callback, newSocketFileDescriptor, newSocketInfo);
t.detach(); t.detach();
} }