mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
sceNetAdhoc: Check a pending P2P connect the way Winsock reports a failure
Winsock never makes a socket whose connect failed writable; the failure shows in select's exception set, with the reason in SO_ERROR. The poll now checks both, and SO_ERROR on a writable socket too, which is where other systems put a refusal. Windows still retries a refused connect for about a second before reporting it, far longer than a PSP at the tests' 800% speed, so pair/basic is a known P2P failure on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
31369e70fe
commit
978eb5bafe
2 files changed
+30
-6
No files matched your search
@@ -629,6 +629,10 @@ pair_known_failures = {
|
||||
],
|
||||
"p2p": [],
|
||||
}
|
||||
if platform.system() == "Windows":
|
||||
# Windows retries a refused TCP connect for about a second before reporting it, which at the tests'
|
||||
# 800% speed is far longer than a PSP's refusal.
|
||||
pair_known_failures["p2p"].append("net/adhoc/pair/basic")
|
||||
|
||||
ADHOC_MODES = ["relay", "p2p"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user