Page MenuHomePhabricator

Discard stdout/stderr from the aphlict subprocess when running in daemon (normal) mode
ClosedPublic

Authored by epriestley on Nov 14 2016, 12:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 9, 3:56 PM
Unknown Object (File)
Apr 11 2025, 11:46 PM
Unknown Object (File)
Apr 10 2025, 6:16 PM
Unknown Object (File)
Apr 10 2025, 5:14 PM
Unknown Object (File)
Apr 9 2025, 3:54 PM
Unknown Object (File)
Mar 21 2025, 11:53 AM
Unknown Object (File)
Mar 20 2025, 9:22 AM
Unknown Object (File)
Mar 7 2025, 2:44 PM
Subscribers
None

Details

Summary

Fixes T11818. We don't discard output, so once we read more than 2GB of output we'll exceed the maximum size of a string in an internal buffer.

Instead, configure the future so output is discarded.

Test Plan

Added logging to libphutil/, saw internal buffer grow steadily before this change and stay constant at 0 after this change.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Discard stdout/stderr from the aphlict subprocess when running in daemon (normal) mode.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 14 2016, 12:43 AM
This revision was automatically updated to reflect the committed changes.