Page MenuHomePhabricator

Allow PhutilChannels to have their write channels closed explicitly
ClosedPublic

Authored by epriestley on Nov 10 2013, 11:28 PM.
Tags
None
Referenced Files
F19179725: D7552.id17042.diff
Tue, Dec 16, 2:00 AM
F19067181: D7552.id17061.diff
Sun, Nov 30, 7:08 AM
F18872472: D7552.id17043.diff
Nov 5 2025, 4:33 AM
F18834980: D7552.id.diff
Oct 26 2025, 12:29 PM
F18830503: D7552.diff
Oct 25 2025, 7:07 AM
F18823996: D7552.id.diff
Oct 23 2025, 2:01 PM
F18810674: D7552.diff
Oct 19 2025, 10:48 PM
F18096427: D7552.id17061.diff
Aug 8 2025, 6:53 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
rPHU3ef0937680ad: Allow PhutilChannels to have their write channels closed explicitly
Summary

Ref T2230. This simplifies some tests and cleans up some TODOs in the hosting stuff. See testCloseExecWriteChannel for an example of where we need this in practice.

Test Plan

Ran unit tests; commented out the closeWriteChannel() calls and got test failures instead of hangs.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Nov 10 2013, 11:35 PM
  • Also fix an issue with reading remaining messages off a channel after it has closed but before its buffer has emptied.
epriestley updated this revision to Unknown Object (????).Nov 10 2013, 11:36 PM
  • Fix return type.