Skip to content

Conversation

@JamesVanBoxtel
Copy link
Contributor

When socket sends data and it only partially sends, we get an error and the amount of data that was sent.

We are only supposed to send the rest of the data next time the socket is free but we were sending the whole thing in the Connection server case, and dropping it on the floor in the client case.

Note that we didn't have this problem on the receiving side.

Added tests to prove the problems, then fixed them.

Also note I could refactor this more, but didn't want to introduce more risk.

When socket sends data and it only partially sends, we get an error and the amount of data that was sent.

We are only supposed to send the rest of the data next time the socket is free but we were sending the whole thing in the Connection server case, and dropping it on the floor in the client case.

Note that we didn't have this problem on the receiving side.

Added tests to prove the problems, then fixed them.

Also note I could refactor this more, but didn't want to introduce more risk.
Copy link
Collaborator

@Endaris Endaris left a comment

Choose a reason for hiding this comment

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

Thanks

@Endaris Endaris merged commit 8a0586d into panel-attack:beta Nov 12, 2025
2 checks passed
@JamesVanBoxtel JamesVanBoxtel deleted the partialSendSocketFixPR branch November 13, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants