Skip to content

No download limit - unused option MaxReadBeforeTruncate #102

@vbanos

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.

Sub-issues

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