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:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-31 00:48:11 +01:00
1 parent 31369e70fe
commit 978eb5bafe
2 files changed
+30 -6

No files matched your search

+4
View File
@@ -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"]