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
F13283896: D7552.id17042.diff
Sun, Jun 2, 6:03 PM
F13280114: D7552.id17061.diff
Sun, Jun 2, 3:08 AM
F13268783: D7552.diff
Wed, May 29, 5:22 AM
F13252525: D7552.diff
Sat, May 25, 1:38 AM
F13226391: D7552.id17042.diff
Sun, May 19, 8:28 PM
F13219552: D7552.id17041.diff
Sat, May 18, 7:22 PM
F13217182: D7552.id.diff
Sat, May 18, 3:46 AM
F13204240: D7552.id17061.diff
Wed, May 15, 12:26 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

Branch
closewrite
Lint
Lint Passed
Unit
Tests Passed

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.