Skip to content

Fix to JsonWriter to not flush underlying outputStream when error during serialisation #40

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
Dec 13, 2022

Conversation

rbygrave
Copy link
Contributor

  • Adds markIncomplete() to indicate when an error has occurred during serialisation
  • When not complete then do not flush to the underlying outputStream (so that it can be reset for sending error content)

…ing serialization

- Adds markIncomplete() to indicate when an error has occurred during serialisation
- When not complete then do not flush to the underlying outputStream (so that it can be reset for sending error content)
Copy link
Collaborator

@SentryMan SentryMan left a comment

Choose a reason for hiding this comment

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

LGTM

@rbygrave rbygrave merged commit 20c7202 into main Dec 13, 2022
@rbygrave rbygrave deleted the feature/markIncomplete branch December 13, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants