Page MenuHomePhabricator

D7770.id17572.diff
No OneTemporary

D7770.id17572.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
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)

Event Timeline