Context: https://gist.github.com/nex3/4aee4b681ffddf6480ea20dc75f8ad26
#50
test("does not block with a large chunk of data", () async {
var payloadSize = (1<<16) +1;
// This must be an actual script. [Script.capture] won't fail.var script =mainScript('stderr.write("." * $payloadSize);');
var controller =StreamController<List<int>>();
script.stderr > controller.sink;
await script.done;
expect((await controller.stream.text).length, payloadSize);
}, timeout:Timeout(Duration(seconds:3)));The issue comes from dart core libraries and is not cli_script-specific. However this may be considered WAI by Dart so it should be handled automatically.
I was able to repro with Process and Script.fromBytesBufferTransformer. However, the latter doesn't require a full payload so maybe each blocks for different reasons 🤔
Context: https://gist.github.com/nex3/4aee4b681ffddf6480ea20dc75f8ad26
#50
The issue comes from dart core libraries and is not
cli_script-specific. However this may be considered WAI by Dart so it should be handled automatically.I was able to repro with
ProcessandScript.fromBytesBufferTransformer. However, the latter doesn't require a full payload so maybe each blocks for different reasons 🤔