Skip to content

Allow configuring maxDecompressedMessageSize #4944

@simong

Description

@simong

In order to address the potential per-message deflate decompress bomb, the message size was limited to 4MB in 2ee00cb with a configuration option.

That configuration option was then removed in #4891 .

I understand the reasoning behind removing the configuration option, but it effectively limits any decompressed message to 4MB without providing the consumer the ability to set their own limit. AFAICT, the only way forward is to use a different library such as ws.

The removal PR mentions the ability to provide configuration via a dispatcher. Creating this issue to track progress on that enhancement as we would like to continue using undici bundled in node, but need the ability process messages larger than 4MB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions