mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Fixed an issue where Windows VCP data latency was bad at low traffic
This commit is contained in:
@@ -142,6 +142,10 @@ bool VCP::open(bool fromAsync) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See https://docs.microsoft.com/en-us/windows/desktop/api/winbase/ns-winbase-_commtimeouts#remarks
|
||||||
|
timeouts.ReadIntervalTimeout = MAXDWORD;
|
||||||
|
timeouts.ReadTotalTimeoutMultiplier = MAXDWORD;
|
||||||
|
timeouts.ReadTotalTimeoutConstant = 100;
|
||||||
timeouts.WriteTotalTimeoutConstant = 10000;
|
timeouts.WriteTotalTimeoutConstant = 10000;
|
||||||
timeouts.WriteTotalTimeoutMultiplier = 0;
|
timeouts.WriteTotalTimeoutMultiplier = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user