Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13997878
D7770.id17572.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7770.id17572.diff
View Options
Index: src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
===================================================================
--- src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
+++ src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
@@ -76,13 +76,6 @@
public function writeErrorIOCallback(PhutilChannel $channel, $data) {
$this->errorChannel->write($data);
-
- // TODO: Because of the way `waitForAny()` works, we degrade to a busy
- // wait if we hand it a writable, write-only channel. We should handle this
- // case better in `waitForAny()`. For now, just flush the error channel
- // explicity after writing data over it.
-
- $this->errorChannel->flush();
}
public function execute() {
@@ -105,9 +98,7 @@
$channels = array($command_channel, $io_channel, $error_channel);
while (true) {
- // TODO: See note in writeErrorIOCallback!
- $wait = array($command_channel, $io_channel);
- PhutilChannel::waitForAny($wait);
+ PhutilChannel::waitForAny($channels);
$io_channel->update();
$command_channel->update();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 6:37 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724910
Default Alt Text
D7770.id17572.diff (1 KB)
Attached To
Mode
D7770: Use more sensible waitForAny semantics in SSH process
Attached
Detach File
Event Timeline
Log In to Comment