Skip to content

Change max_response_body_size and max_request_body_size to usize or u64 #1586

@mattsse

Description

@mattsse

These settings are currently u32 and translate to ~4.3GB max response sizes

https://github.com/paritytech/jsonrpsee/blob/master/server/src/server.rs#L177-L180

this should be sufficient for almost all usecases, however there are usecases (e.g. block tracing) where responses can exceed this (🫠).

internally this is used to restrict a Vec buffer which operates on usize.

perhaps the settings can be relaxed to usize as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions