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

[AGTC-178] Fix backend response sending/receiving blocking #107

Merged
merged 9 commits into from
Mar 31, 2025

Conversation

jonathan-d-zhang
Copy link

Split recv and send functions into two tasks to run async.

@jonathan-d-zhang jonathan-d-zhang self-assigned this Mar 27, 2025
"""Receive a message or None if empty."""
try:
return self._recv.get_nowait()
except queue.Empty:
return None

def recv(self) -> T:

Choose a reason for hiding this comment

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

While I was testing the changes, I found that this section was the only change required to fix the problem. Unless there's a good reason to include the other changes, I propose we just do this

Copy link

@Andriy-Luchko Andriy-Luchko left a comment

Choose a reason for hiding this comment

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

Looks good and the ws tests work for me, the logging is working as well.

@Andriy-Luchko Andriy-Luchko merged commit a3aa3d7 into main Mar 31, 2025
1 check passed
@jonathan-d-zhang jonathan-d-zhang deleted the send-recv-two-tasks branch March 31, 2025 16:51
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.

3 participants