Skip to content

Fix StreamHandler truncating writes on non-blocking streamsFix partial writes on non-blocking streams#2016

Open
rushik2204 wants to merge 1 commit intoSeldaek:mainfrom
rushik2204:fix-non-blocking-stream-write
Open

Fix StreamHandler truncating writes on non-blocking streamsFix partial writes on non-blocking streams#2016
rushik2204 wants to merge 1 commit intoSeldaek:mainfrom
rushik2204:fix-non-blocking-stream-write

Conversation

@rushik2204
Copy link
Copy Markdown

Fixes partial log writes when using non-blocking streams by looping on
fwrite() until the full record is written.

Includes a regression test reproducing the issue.

Fixes #2011

@Seldaek
Copy link
Copy Markdown
Owner

Seldaek commented Feb 23, 2026

Thanks but please redo the PR without all the other unrelated changes.. because this is very hard to review as is.

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.

StreamHandler doesn't handle non-blocking streams properly, truncating logs

2 participants