Skip to content

Should pass timeouts to lua-http functions #6

@daurnimator

Description

@daurnimator

You should pass timeouts to calls such as :get_headers() to prevent clients causing resource exhaustion.

Same for :write functions: you don't want to waste resources forever if the client never acks the data.

Btw, on failure you should always try to call stream:shutdown() which allows for immediate resource freeing (and in some cases stuff like connection pooling/reuse)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions