Skip to content

zlib.brotliCompressSync results in no response #38407

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

brotliIssues and PRs related to the Brotli dependency.confirmed-bugIssues and PRs for confirmed bugs.zlibIssues and PRs related to the zlib module and its compression dependencies.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions