Skip to content

examples/image_list: missing await on HttpResponse.close() #184317

Closed

Description

@randomizedcoder

In examples/image_list/lib/main.dart, the local HTTPS server's request handler calls request.response.close() without await (line 115). HttpResponse.close() returns a Future that completes when the response is fully sent. Without await, the handler may return before response bytes are flushed, potentially causing incomplete image responses under load.

Fix: Add await to request.response.close(). One-line change.

Activity

  1. added a commit that references this issue on Mar 29, 2026
    75c551b
  2. added
    P2Important issues not at the top of the work list
    on Mar 31, 2026
  3. github-actions commented on Apr 16, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: examplesSample code and demoshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions