-
Notifications
You must be signed in to change notification settings - Fork 19
Convert adapters to use asyncio instead of the deprecated asynchat/asyncore #336
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
Open
kovacskristof
wants to merge
32
commits into
ISISComputingGroup:main
Choose a base branch
from
kovacskristof:320-remove-asynchat
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d56e261
convert adapter core and stream adapter to asyncio
balintpeceli 6a7c3c5
convert modbus adapter to asyncio
balintpeceli ee9924a
make epics adapter functions async coroutines
balintpeceli 26c50dc
fix stream adapter for devices using empty in_terminator
balintpeceli 8dfef3d
don't wait for draining the output buffer
balintpeceli b2eb561
Remove handler independently from is_closing()
kovacskristof da1d48a
Do not mutate self._accepted_connections while iterating over it
kovacskristof da6991a
Do not bypass StreamWriter.write()
kovacskristof 2e7ff0f
Add type annotations
kovacskristof 6cd869b
Add type annotations
kovacskristof 7400c5c
Simplify task handling
kovacskristof d94f6c3
Handle connections in the process() method only
kovacskristof b6c235c
Fix flushing the write buffer
kovacskristof d7982c0
Add tests for stream adapter
kovacskristof 813e148
Fix potential crash when socket already closed
kovacskristof bd30c0d
Fix typo
kovacskristof f06cd05
Fix Python3 TypeError
kovacskristof b19914c
Do the processing as soon as possible
kovacskristof d16a47a
Make unsolicited_reply sync once again
kovacskristof 940de9d
Handle socket close error
kovacskristof 7d1e320
Ignore ValueError if a handler cannot be found anymore
kovacskristof 6afb3a8
Suppress RuntimeWarning for not awaiting a cancelled task
kovacskristof 648f37f
Add more tests for stream adapter
kovacskristof 0a3d9bc
Make sure to call adapter.stop_server() even if handle() raises
kovacskristof 5f1cf6c
Close writer even if socket info is not available
kovacskristof 3655d83
Do not send responses while holding the device lock
kovacskristof 9c90c65
Local ruff config
Tom-Willemsen dae2038
Run ruff format
Tom-Willemsen 908de0c
Fix formatting with ruff
kovacskristof de2ab01
Add explanatory comments
kovacskristof 660d898
Remove handler entirely
kovacskristof c79836a
Catch exception when waiting for socket close
kovacskristof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.