Skip to content

zlib.brotliCompressSync results in no response #38407

@zyscoder

Description

@zyscoder

What steps will reproduce the bug?

Setup a node instance,

» node

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

Metadata

Metadata

Assignees

Labels

brotliIssues and PRs related to the brotli dependency.confirmed-bugIssues with confirmed bugs.zlibIssues and PRs related to the zlib subsystem.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions