-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
"""Receive a message or None if empty.""" | ||
try: | ||
return self._recv.get_nowait() | ||
except queue.Empty: | ||
return None | ||
|
||
def recv(self) -> T: |
There was a problem hiding this comment.
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
Previous config would hang on configuration, and would not allow app to start.
1034a9b
to
9407c7d
Compare
9407c7d
to
b2858a4
Compare
There was a problem hiding this 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.
Split recv and send functions into two tasks to run async.