Skip to content

refactor(server): replace transpose with match for request error hand…#358

Open
Alarak-Alex wants to merge 1 commit intoslowtec:mainfrom
Alarak-Alex:fix/continue-on-decode-error
Open

refactor(server): replace transpose with match for request error hand…#358
Alarak-Alex wants to merge 1 commit intoslowtec:mainfrom
Alarak-Alex:fix/continue-on-decode-error

Conversation

@Alarak-Alex
Copy link

…ling

Refactor request processing logic in tcp, rtu, and rtu_over_tcp modules to use explicit match expressions instead of transpose. Improve error handling clarity by continuing the loop on error instead of returning immediately.

…ling

Refactor request processing logic in tcp, rtu, and rtu_over_tcp modules to use explicit match expressions instead of transpose.
Improve error handling clarity by continuing the loop on error instead of returning immediately.
continue;
}
None => {
log::debug!("TCP socket has been closed");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this log messaged should be "Stream has finished"

@flosse
Copy link
Member

flosse commented Dec 12, 2025

continuing the loop on error instead of returning immediately.

Why do you want to do that?
This would be a breaking change BTW.

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.

3 participants