Skip to content
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

Optimistically recreate streams when write fails #1884

Conversation

msobkowiak-olx
Copy link

To address #1860 - when fwrite() fails - only then recreate the stream resource.

@Seldaek
Copy link
Owner

Seldaek commented Apr 15, 2024

This will not work IMO as the failure to write might be turned into an exception by some frameworks/apps, and also the failure is detected, file reopened on next log, but you still lose one log entry, so not great.

@Seldaek Seldaek closed this Apr 15, 2024
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.

None yet

2 participants