What steps will reproduce the bug?
Setup a node instance,
and run the following javascript code.
zlib = require('zlib');zlib.brotliCompressSync('',{flush:3,finishFlush:4});
Then the node instance stuck and has no response even with "Ctl-D".
How often does it reproduce? Is there a required condition?
This can be always triggered following the steps above.
What is the expected behavior?
Don't cause any no response.
What do you see instead?
» node
Welcome to Node.js v16.0.0-pre.
Type ".help" for more information.
> zlib = require('zlib');zlib.brotliCompressSync('',{flush:3,finishFlush:4});
^C^C^C^C
Additional information