Skip to content

Conversation

@s0600204
Copy link
Contributor

@s0600204 s0600204 commented Jan 3, 2025

As mentioned in issue 176, according to the documentation one of the ways a callback function may pass a reply back to a client is by returning a message encapsulated thusly: tuple(<Address>, <ArgValue>).

Whilst the code for the UDP servers does conform to this, the code to TCP servers was expecting list(<Address>, <ArgValue>) in all cases.

This PR resolves that, updating the tests as well.

Fixes #176

As mentioned in issue 176, according to the documentation one of the ways a
callback function may pass a reply back to a client is by returning a message
encapsulated thusly: `tuple(<Address>, <ArgValue>)`.

Whilst the code for the UDP servers does conform to this, the code to TCP
servers was expecting `list(<Address>, <ArgValue>)` in all cases.

This PR resolves that, updating the tests as well.
@attwad attwad merged commit b3ebafa into attwad:main Jan 4, 2025
5 checks passed
@attwad
Copy link
Owner

attwad commented Jan 4, 2025

Thanks for the fix!

@s0600204 s0600204 deleted the tcp-tuple branch January 16, 2025 17:19
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.

Dispatcher replies expect List not Tuple on TCP

2 participants