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
F13189233: D7552.diff
Sat, May 11, 5:48 AM
Unknown Object (File)
Tue, May 7, 9:27 AM
Unknown Object (File)
Fri, May 3, 9:19 AM
Unknown Object (File)
Sun, Apr 28, 4:59 AM
Unknown Object (File)
Thu, Apr 25, 1:49 AM
Unknown Object (File)
Fri, Apr 19, 8:14 PM
Unknown Object (File)
Mar 27 2024, 9:51 PM
Unknown Object (File)
Mar 26 2024, 8:41 PM
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.