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
F15462543: D7552.id17061.diff
Tue, Apr 1, 3:50 PM
F15445300: D7552.id17043.diff
Thu, Mar 27, 1:21 PM
F15423123: D7552.id17042.diff
Sat, Mar 22, 1:13 PM
F15422461: D7552.id17043.diff
Sat, Mar 22, 8:32 AM
F15412684: D7552.id17061.diff
Wed, Mar 19, 2:21 PM
F15409310: D7552.id17041.diff
Wed, Mar 19, 4:07 AM
F15406804: D7552.id.diff
Tue, Mar 18, 1:57 PM
F15400005: D7552.diff
Mon, Mar 17, 9:04 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.