6 Commits
Author SHA1 Message Date
seregonwar 8c3302284b Harden console startup and sendfile fallback
Treat `instance.pid` as a control identity instead of a hard lock by authenticating shutdown requests with the saved token, ignoring stale/reused/malformed identities, and only blocking when a verified payload (or authenticated prior instance) is still alive. Add PS4/PS5 `sendfile` safety gating that uses buffered `pread`+`send` on incompatible or unknown mount types (exFAT/FAT/nullfs/PFS, or mount lookup failure) while keeping zero-copy on safe filesystems, and wire in README/Makefile updates plus new host-side tests and stubs for both paths.
2026-10-05 17:45:10 +02:00
seregonwar 09b7cbff2a fix(console): survive an aborted download instead of dying on SIGPIPE
The PS4 entry point never ignored SIGPIPE (the shared handler is compiled out
there), so a browser cancelling a download killed the payload with signal 13.
Ignore SIGPIPE on PS4 like PS5 and POSIX do, and set SO_NOSIGPIPE on the HTTP
listener and client sockets (FTP sockets follow through pal_socket_configure)
so a vanished peer only breaks its own connection.  test_http_server aborts a
streamed download mid-flight and checks the server keeps answering.
2026-09-30 17:50:57 +02:00
seregonwar 7589664a6d feat(platform): volumes, disc, DNS filter, PS5 offsets and instance control
Add removable-volume detection that ignores empty slots, disc eject/state
helpers, the userland DNS filter, PS5 firmware offset lookup with the optional
kernel net filter, and a control port a new payload uses to retire the
previous instance.
2026-09-30 17:50:57 +02:00
seregonwar fb1646ce2b refactor(io): shared file I/O layer and FTP instance plumbing
Move copy, sendfile and directory helpers behind one platform layer, let the
FTP server run beside the HTTP stack with its own instance bookkeeping, and
keep the transfer command on the shared pipeline.
2026-09-30 17:50:45 +02:00
seregonwar a042eae480 refactor: modularize and harden file I/O 2026-09-09 18:13:06 +02:00
seregonwar d0f6dd707d feat: expose ftp and nfs transfers in web downloader 2026-09-09 13:27:56 +02:00