Skip to content

SSL.read computes max and never uses it #117

Description

@SeanTAllen

SSL.read computes max and nothing reads it:

    let max = if expect > 0 then expect - offset else USize.max_value() end

It is at ssl/net/ssl.pony:201, the only mention of the name in the file.

Removing it changes nothing. Where expect > 0, len already holds expect - offset and len.min(pending) caps the read at that value. Where expect == 0, max is USize.max_value() and caps nothing.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions