An attempt to fix socket's behavior inconsistencies across platforms.

Added an option to override minimum socket's timeout to prevent getting timeouts on high latency networks.
This commit is contained in:
ANR2ME authored and Henrik Rydgård committed 2020-07-22 16:46:34 +02:00
1 parent d9756e9231
commit d0045947f1
8 files changed
+115 -19

No files matched your search

+2 -2
View File
@@ -115,7 +115,9 @@ static void __ResetInitNetLib() {
}
void __NetInit() {
// Windows: Assuming WSAStartup already called beforehand
portOffset = g_Config.iPortOffset;
minSocketTimeoutUS = g_Config.iMinTimeout * 1000UL;
InitLocalhostIP();
@@ -149,8 +151,6 @@ void __NetShutdown() {
g_PortManager.Restore();
g_PortManager.Deinit();
}
//PPSSPPIDCleanup(); // To make the ID/IP persistent on every reset, we should just let the OS closes all open handles instead of calling PPSSPPIDCleanup() on every reset
}
static void __UpdateApctlHandlers(int oldState, int newState, int flag, int error) {