1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-07-08 07:38:23 +00:00
gns3-server/gns3server/utils/asyncio
KCarmichael 9b6c1a8025 Summary: Refactored ..utils.asyncio.telnet_server.py to use telnetlib3 library, enhanced command handling and error management..
Extended description:
- Migrated to telnetlib3 for improved handling of Telnet commands and options.
- Upgraded TelnetConnection with error handling in send and close methods.
- Refined AsyncioTelnetServer by inheriting from telnetlib3.TelnetServer, featuring streamlined command processing and enhanced logging.
- Removed unnecessary dependencies and imports, simplifying the codebase.
- Retained the core execution flow, adapting it to the new class structures.

Observation for Future Improvement:
- Some NVT commands are still marked as unhandled in debug logs despite having the necessary handling statments. This behaviour may be related to certain user-reported bugs.
- Further comprehensive testing and diagnostics are needed to understand and resolve these issues.

Next Steps:
- A detailed code review focusing on prerequisites and requirements is suggested. This will determine which functions can be effectively delegated to telnetlib3 without negatively impacting other GNS3 modules.
- The goal is to ensure optimal integration of telnetlib3, maximizing efficiency while preserving the integrity and functionality of the broader GNS3 ecosystem.
2024-01-27 21:36:49 +00:00
..
__init__.py Use proc.communicate() when checking for subprocess output 2023-05-14 13:58:50 +08:00
aiozipstream.py Deprecate running with Python 3.5 2020-05-19 16:14:58 +09:30
embed_shell.py Some fixes for early support for Python3.10 2021-08-15 15:25:33 +09:30
input_stream.py Comment unused code that causes issue with flake8 2020-06-26 18:47:31 +09:30
pool.py Fix creating asyncio task in Python 3.6 2022-10-30 22:21:28 +08:00
raw_command_server.py Some fixes for early support for Python3.10 2021-08-15 15:25:33 +09:30
serial.py Drop Python 3.4 and switch to async / await syntax for asyncio. Fixes #1425 2018-10-15 17:05:49 +07:00
telnet_server.py Summary: Refactored ..utils.asyncio.telnet_server.py to use telnetlib3 library, enhanced command handling and error management.. 2024-01-27 21:36:49 +00:00