Skip to content

Reject a request with huge payload which exceeds the server's size limit #144

@yhirose

Description

@yhirose

#142 (comment)

Another thing I noticed in our stress testing today, we have to reject streams if the content length exceeds a maximum size specified in the server instance. Otherwise, bad clients can create 40gb requests - effectively killing our process.

  • Server::set_payload_max_length(uint64_t length) to set limit size
  • 413 Payload Too Large will return when the body size exceeds the limit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions