Skip to content

Conversation

@peichler
Copy link

Poller Loop Bug

Commit c48fc29
Fixed bug in poller loop in origin_subscriber.py. The poller loop referenced local variable stream_filter but did not always set it. The only place where stream_filter was set was in the command action SUBSCRIBE. This caused the command action UNSUBSCRIBE to use the wrong value for stream_filter because it was only set in SUBSCRIBE action. This was fixed by removing the local variable stream_filter and instead using the variable directly from the command.

Keyboard Interrupt Handling

Commit 10f0dff
origin_subscriber.py and receiver.py did not handle KeyboardInterrupt well. The subscriber now does not throw unnecessary KeyboardInterrupt errors when stopping the program in the poller loop. Also, subscriber is now able to be stopped if it can't initially connect to the Origin server instead of being stuck in a loop.

@peichler peichler requested a review from prhuft August 31, 2023 21:26
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