add time out on server socket
This commit is contained in:
parent
9c3d550224
commit
2dd7500ec2
@ -157,7 +157,7 @@ namespace TcpSocket
|
||||
|
||||
return -7;
|
||||
}
|
||||
|
||||
setTimeout(60, newSocketFileDescriptor);
|
||||
std::thread t(callback, newSocketFileDescriptor, newSocketInfo);
|
||||
t.detach();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user