mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3347] [MERGED] Net: Fix various socket-related issues #3403
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3403
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3347
Author: @StevenMiller123
Created: 7/29/2025
Status: ✅ Merged
Merged: 7/30/2025
Merged by: @georgemoralis
Base:
main← Head:sockets📝 Commits (10+)
d2d5e54Store platform-specific level in a separate variablea7baaabDefine ORBIS_NET_IPPROTO_IPV65341c85Fix error codes9732aacRemove duplicate getsockname implementation7345847Use separate mutex for ReceivePacket callsdb1b859Add missing error codes7b26057Clangf81bfebMinor nite84b064Set __Error() in ConvertReturnErrorCodee88bb65Set errno on stubbed P2P socket error returns.📊 Changes
8 files changed (+79 additions, -82 deletions)
View changed files
📝
src/core/libraries/kernel/file_system.cpp(+6 -18)📝
src/core/libraries/kernel/kernel.cpp(+2 -21)📝
src/core/libraries/network/net.h(+1 -0)📝
src/core/libraries/network/net_error.h(+4 -4)📝
src/core/libraries/network/p2p_sockets.cpp(+6 -0)📝
src/core/libraries/network/posix_sockets.cpp(+34 -21)📝
src/core/libraries/network/sockets.h(+1 -0)📝
src/core/libraries/network/sys_net.cpp(+25 -18)📄 Description
This fixes a variety of socket-related issues I've noticed while reviewing code changes in recent network-related PRs. As far as I'm aware, this should have minimal conflict with the remaining changes in #3231
This makes the current crash in Minecraft (CUSA00744) more descriptive, fixes early deadlocks in Cyberpunk 2077 (CUSA16595), and should also fix a deadlock reported by @psucien on the shadPS4 Discord server.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.