Skip to content

Cohttp_lwt: body not consumed - leaking stream! #730

@mseri

Description

@mseri

This often still happened to me, I found out that I had to drain the body every time it was unused: e.g in redirects

| 301 | 302 | 307 | 308 ->
      let* () = Cohttp_lwt.Body.drain_body body in

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