Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F90171
D7770.diff
All Users
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.diff
View Options
diff --git a/src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php b/src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
--- a/src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
+++ b/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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/vn/jw/ti73y4dj7vwzefaz
Default Alt Text
D7770.diff (1 KB)
Attached To
Mode
D7770: Use more sensible waitForAny semantics in SSH process
Attached
Detach File
Event Timeline
Log In to Comment