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

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

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

1 participant