mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
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:
1 parent
d9756e9231
commit
d0045947f1
8 files changed
+115
-19
No files matched your search
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user