Skip to content

Conversation

@hickey
Copy link

@hickey hickey commented Jan 10, 2025

If one attempts to use aprslib in a non-blocking fashion, then every time that there is a read of the socket and there are not any frames to be read an error message gets sent through the logger. This is not actually an error but expected. So this patch will just squash the timed out errors when _socket_readlines() is called with blocking=False.

Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
@hickey
Copy link
Author

hickey commented Jan 27, 2025

@rossengeorgiev Just looking to get your eyes on this.

@hickey
Copy link
Author

hickey commented Jan 27, 2025

The other thought here is to remove the logging statement and raise the exception to allow the calling code to decide how to handle the timeout.

That might actually be the better option except it is a breaking change for anyone using aprslib. But then the version is still pre-1.0 so breaking changes are somewhat expected.

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