Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV9: Further use ReceivedPayload in TCP_Session #11907

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

TheLastRar
Copy link
Contributor

Description of Changes

Instead of shuffling a unique_ptr around, use ReceivedPayload
Fixes handling of connection failure in ConnectTCPComplete()

Rationale behind Changes

Existing code would not correctly handle a connection failure, returning an invalid ReceivedPayload with a nullptr (instead of returning std::nullopt).

Suggested Testing Steps

Test networking with sockets

Instead of shuffling a unique_ptr around
Fixes handling of connection failure in ConnectTCPComplete()
@github-actions github-actions bot added the DEV9 label Oct 12, 2024
Copy link
Member

@F0bes F0bes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple cURL sample while using sockets worked fine.

@F0bes F0bes merged commit 0806ca4 into PCSX2:master Oct 15, 2024
12 checks passed
@TheLastRar TheLastRar deleted the DEV9-TCPConnectFail branch October 15, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants