Skip to content

No download limit - unused option MaxReadBeforeTruncate #102

Description

@vbanos

gowarc has an option MaxReadBeforeTruncate with a default limit of 1GB. The problem is that this option isn’t used anywhere in gowarc and Zeno. Also, there was never such an option in net/http.

https://github.com/internetarchive/gowarc/blob/master/client.go#L139

This is a critical issue. A large target URL will OOM Zeno because when you use net/http to download a URL and you invoke io.ReadAll() it reads all in memory.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions