8000 STDOUT blocks infinitely under Windows when STDERR is filled · symfony/symfony@eba33de · GitHub
[go: up one dir, main page]

Skip to content

Commit eba33de

Browse files
authored
STDOUT blocks infinitely under Windows when STDERR is filled
stream_get_contents() on STDOUT blocks infinitely under Windows when STDERR is filled under some circumstances. Open STDERR in append mode ("a"), then this will work.
1 parent ac12c4f commit eba33de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/Stream/ProcessStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function initialize(): void
3535
$descriptorSpec = [
3636
0 => ['pipe', 'r'],
3737
1 => ['pipe', 'w'],
38-
2 => ['pipe', 'w'],
38+
2 => ['pipe', 'a'],
3939
];
4040
$pipes = [];
4141
$this->stream = proc_open($this->command, $descriptorSpec, $pipes);

0 commit comments

Comments
 (0)
0