macOS: a listen backlog of 0 does not bound the pending accept queue, so guest_sce_net's connect-expiry case cannot pass #22443
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-11-17T16:19:52Z.
What happens
On macOS,
guest_sce_netfails inCheckConnectTimeoutExpiry(line 1212):The case creates a listener with
sceNetListen(listener, 0)and connects repeatedly until one connect stays pending, because the console stops completing them once the queue is full. On macOS the queue is never full at that depth.Measured with a host socket, x86-64 under Rosetta 2: a listener created with
listen(0)completed 64 of 64 connects with none refused and none pending. XNU does not treat 0 as a queue of 0, so the check's premise does not hold there.This is separate from #22317, which stops the same test earlier at line 1188; fixing that one is what makes the test reach this case.
Title, test or build step
guest_sce_net(ctest),CheckConnectTimeoutExpiryAnyPS5 commit
main1adc0e2f4b, with the fix for #22317 applied to reach this case.System
macOS 27.0.1 (26A434), Apple M4 (Mac mini), Apple clang 21.0.0, x86-64 Release under Rosetta 2.
Steps to reproduce
What was checked
listen(0)accepts 64 connections without anyaccept, sosceNetConnectsucceeds every time and never waits.Possible directions
sceNetListen/sceNetConnect: count guest connects that the host completed but the guest never accepted, and stop completing them past the console's depth. The console's depth for a backlog of 0 is unmeasured, so it needs a console reading first.AI-assisted: yes