-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Innmind/fix-output-streaming-with-long-input
Process output should not be kept in memory while writing to the input stream
- Loading branch information
Showing
17 changed files
with
242 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
use Innmind\Server\Control\Server\Process\{ | ||
Pid, | ||
Output, | ||
ExitCode, | ||
TimedOut, | ||
Failed, | ||
Signaled, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Innmind\Server\Control\Server\Process\Output; | ||
|
||
use Innmind\Immutable\Str; | ||
|
||
/** | ||
* @psalm-immutable | ||
*/ | ||
final class Chunk | ||
{ | ||
private function __construct( | ||
private Str $data, | ||
private Type $type, | ||
) { | ||
} | ||
|
||
/** | ||
* @psalm-pure | ||
*/ | ||
public static function of(Str $data, Type $type): self | ||
{ | ||
return new self($data, $type); | ||
} | ||
|
||
public function data(): Str | ||
{ | ||
return $this->data; | ||
} | ||
|
||
public function type(): Type | ||
{ | ||
return $this->type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.