Page MenuHomePhabricator

D7770.diff
No OneTemporary

D7770.diff

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

Mime Type
text/plain
Expires
Sat, Nov 23, 8:57 AM (17 h, 23 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6776322
Default Alt Text
D7770.diff (1 KB)

Event Timeline