Skip to content

Overflow when handling big files inefficiently #675

@RobertoPrevato

Description

@RobertoPrevato

Describe the bug
When handling very big files inefficiently, an OverflowError can be triggered (this is likely a regression).

  File ".../venv/lib/python3.14/site-packages/blacksheep/server/application.py", line 888, in _handle_http
    await send_asgi_response(response, send)
  File "blacksheep/scribe.pyx", line 92, in send_asgi_response
  File "blacksheep/scribe.pyx", line 48, in get_chunks
OverflowError: value too large to convert to int

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