mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Reduce socket read timeout to 100 ms to allow LiStopConnection() to complete faster
This commit is contained in:
parent
7ee9ea4e11
commit
eaf3355c96
@ -52,9 +52,9 @@ int recvUdpSocket(SOCKET s, char* buffer, int size) {
|
||||
FD_ZERO(&readfds);
|
||||
FD_SET(s, &readfds);
|
||||
|
||||
// Wait up to 500 ms for the socket to be readable
|
||||
// Wait up to 100 ms for the socket to be readable
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 500 * 1000;
|
||||
tv.tv_usec = 100 * 1000;
|
||||
|
||||
err = select((int)(s) + 1, &readfds, NULL, NULL, &tv);
|
||||
if (err <= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user