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

Move UUID checking to resp_loop #1151

Closed

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Feb 7, 2024

This PR moves the checking of upstairs_id and session_id into resp_loop, immediately upon receiving a message from the FramedRead. Doing the check early simplifies the code in pf_task, which was previously doing the equivalent check in a bunch of individual branches.

@mkeeter mkeeter requested review from jmpesp and leftwo February 7, 2024 18:16
@mkeeter
Copy link
Contributor Author

mkeeter commented Feb 8, 2024

On second thought, this is a bad idea because it means that pings don't reset the timeout (which is managed elsewhere). Converting to draft while I think about a clean way to fix that...

@mkeeter mkeeter marked this pull request as draft February 8, 2024 19:25
@mkeeter
Copy link
Contributor Author

mkeeter commented Feb 20, 2024

#1160 cleans up the call to is_message_valid in a similar way as this PR (but without the timeout-related shenanigans), so I'm going to close this one.

@mkeeter mkeeter closed this Feb 20, 2024
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.

1 participant