Skip to content

Fix PipeOutput() not closing files correctly - #303

Open
JiyuSoftware wants to merge 1 commit into
space-wizards:masterfrom
JiyuSoftware:fix-client-log-disposal
Open

JiyuSoftware wants to merge 1 commit into
space-wizards:masterfrom
JiyuSoftware:fix-client-log-disposal

Conversation

@JiyuSoftware

@JiyuSoftware JiyuSoftware commented Aug 23, 2026

Copy link
Copy Markdown

PipeOutput() never closes the log files properly. This means the tail end of every log in the unwritten buffer is never written.

This probably fixes issues like: space-wizards/space-station-14#39186

What this also fixes is that old output that might still be present in the buffer from an old session which will get written to a new session's log.

Another interesting finding is that before commit 0e50acd ("Don't do text conversion when logging client") both streams were wrapped using await using. This PR essentially restores the old proper closing behaviour from before 0e50acd, but keeps the fix for non-ASCII characters by deliberately not reintroducing AutoFlush=true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants