Skip to content

Comments

Don't crash on malformed messages received with crypto enabled#291

Merged
wkal-pubnub merged 4 commits intomasterfrom
CLEN-1687
Nov 20, 2023
Merged

Don't crash on malformed messages received with crypto enabled#291
wkal-pubnub merged 4 commits intomasterfrom
CLEN-1687

Conversation

@wkal-pubnub
Copy link
Contributor

No description provided.

} catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.trace("take message interrupted", e);
} catch (Exception e) { // don't crash the thread on malformed messages
Copy link
Contributor

Choose a reason for hiding this comment

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

I am just wondering if this is needed anymore after changes in processMessage method ?
My understanding is that processMessage method handles malformed messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I'd leave it in case there are errors in some other part of message processing, otherwise the whole message processing loop crashes

Copy link
Contributor

Choose a reason for hiding this comment

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

I see.

Deliver original message content with error flag.
@wkal-pubnub wkal-pubnub merged commit 848192d into master Nov 20, 2023
@wkal-pubnub wkal-pubnub deleted the CLEN-1687 branch November 20, 2023 10:04
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