Skip to content

Fix handling of corrupted msgs to avoid crash - #441

Merged
tofu-rocketry merged 1 commit into
apel:devfrom
tofu-rocketry:corrupted-msgs
Aug 18, 2026
Merged

Fix handling of corrupted msgs to avoid crash#441
tofu-rocketry merged 1 commit into
apel:devfrom
tofu-rocketry:corrupted-msgs

Conversation

@tofu-rocketry

@tofu-rocketry tofu-rocketry commented Aug 18, 2026

Copy link
Copy Markdown
Member

Resolves GT-1642

This adds handling of non-ASCII message bodies, which usually indicate a corrupted message, so that the message can be written out to the reject queue and avoid the receiver crashing. The altered code has been moved within the try...except (IOError, OSError) so that the new dirq add() is protected.

Also add a unit test to cover the new code.

@tofu-rocketry tofu-rocketry added this to the 4.0.2 milestone Aug 18, 2026
@tofu-rocketry tofu-rocketry self-assigned this Aug 18, 2026
@tofu-rocketry
tofu-rocketry requested a review from a team as a code owner August 18, 2026 11:09
This adds handling of non-ASCII message bodies, which usually indicate a
corrupted message, so that the message can be written out to the reject
queue and avoid the receiver crashing. The altered code has been moved
within the try...except (IOError, OSError) so that the new dirq add() is
protected.

Also add a unit test to cover the new code.

@garaimanoj garaimanoj left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@tofu-rocketry
tofu-rocketry merged commit 2cf43bf into apel:dev Aug 18, 2026
11 checks passed
@tofu-rocketry
tofu-rocketry deleted the corrupted-msgs branch August 18, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants