Page MenuHomePhabricator

D17366.diff
No OneTemporary

D17366.diff

diff --git a/src/hgdaemon/ArcanistHgServerChannel.php b/src/hgdaemon/ArcanistHgServerChannel.php
--- a/src/hgdaemon/ArcanistHgServerChannel.php
+++ b/src/hgdaemon/ArcanistHgServerChannel.php
@@ -54,6 +54,7 @@
private $mode = self::MODE_CHANNEL;
private $byteLengthOfNextChunk = 1;
private $buf = '';
+ private $outputChannel;
/* -( Protocol Implementation )-------------------------------------------- */
@@ -137,7 +138,7 @@
// 'output', 'error', 'result' or 'debug' respectively. This is a
// single byte long. Next, we'll expect a length.
- $this->channel = $chunk;
+ $this->outputChannel = $chunk;
$this->byteLengthOfNextChunk = 4;
$this->mode = self::MODE_LENGTH;
break;
@@ -153,11 +154,11 @@
// given length. We produce a message from the channel and the data
// and return it. Next, we expect another channel name.
- $message = array($this->channel, $chunk);
+ $message = array($this->outputChannel, $chunk);
$this->byteLengthOfNextChunk = 1;
$this->mode = self::MODE_CHANNEL;
- $this->channel = null;
+ $this->outputChannel = null;
$messages[] = $message;
break;

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 20, 9:00 AM (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712841
Default Alt Text
D17366.diff (1 KB)

Event Timeline