fix(libSceNet): sceNetEpollWait takes 2 as the OUT event #4611
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4611"
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 EagleBearerYS on 2026-10-12T16:45:23Z.
What
sceNetEpollWaitused Linux'sEPOLLOUTbit (4) when it polled and when it reported writability. The SCE value is 2 (shadPS4 net_types.h, KytyPS5 network.cpp, SharpProspero Socket.cs); IN (1), ERR (8) and HUP (0x10) already match. A socket registered for OUT was never polled for writability, so the wait ran out its timeout or blocked forever, and an IN|OUT registration never reported OUT:mainevents0x2, at onceevents0x1 (OUT missing)events0x3Same kind of fix as #4110, which corrected the
sceNetEpollControloperation numbers.Tested
Windows 11 (10.0.26300), WinLibs MinGW-w64 GCC 15.2.0 r7 (UCRT), Release,
-DBUILD_TESTING=ON, onmainat2a5eca11:main'sExport.cpp, the newCheckEpollWritableinguest_sce_netaborts (exit0xc0000409);guest_sce_netpasses onmainitself, IPv6 checks included, so the abort is the new check. With the change it passes, 20 runs in a row.core/libs/prx/libc/CMakeLists.txtandcore/libs/prx/libkernel/CMakeLists.txtthat build on Windows pass, and so do the network tests (guest_datagram_recv,guest_datagram_recvfrom,guest_datagram_sceNetRecv,guest_datagram_sceNetRecvfrom,guest_udp,guest_resolver,guest_posix_filesystem).Linux (Ubuntu 24.04, GCC 13.3, Release), base
33ae282e: the newCheckEpollWritableinguest_sce_netaborts onmainatsceNetEpollWait(epoll, &ready, 1, 1000000) == 1and passes with the change, 20/20; the libSceNet, libc and libkernel tests are unchanged. Again on WSL2 (Ubuntu 24.04, GCC 13.3.0, Release with CI's configure flags), merged intomainatc952c2b0e, IPv6 checks included: it aborts withmain'sExport.cppand passes with the change, 20 runs in a row.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:44:50Z.
Checked
sceNetEpollWait's four OUT sites against shadPS4'sORBIS_NET_EPOLLOUT = 0x2;CheckEpollWritablefails withmain'sExport.cppand passes with the change, and the scoped ctest (29 tests) is green. Merging.