Skip to content

shell: backend: telnet: Don't assert if connection closed #78976

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

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

kevinior
Copy link
Contributor

The code in shell_ops.c that calls telnet_write will assert if it returns non-zero. For a telnet shell it's normal that the network might disconnect unexpectedly, so that should not trigger an assert.

Fixes #67637

Link: #67637

@zephyrbot zephyrbot added the area: Shell Shell subsystem label Sep 25, 2024
@kevinior
Copy link
Contributor Author

kevinior commented Oct 9, 2024

Ping @carlescufi @jakub-uC

The code in shell_ops.c that calls telnet_write will assert if it
returns non-zero. For a telnet shell it's normal that the
network might disconnect unexepectedly, so that should not
trigger an assert.

Fixes zephyrproject-rtos#67637

Link: zephyrproject-rtos#67637

Signed-off-by: Kevin ORourke <[email protected]>
@kevinior kevinior force-pushed the fix_telnet_shell_asserts branch from dc1d48a to 4f7ae6e Compare October 10, 2024 05:56
@kevinior
Copy link
Contributor Author

Rebased on current main since it looks like there was some i3c-related CI breakage when I originally created this PR.

@nashif nashif merged commit 3399e06 into zephyrproject-rtos:main Oct 11, 2024
23 checks passed
@kevinior kevinior deleted the fix_telnet_shell_asserts branch October 11, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telnet shell asserts if connection is closed
5 participants