Skip to content

crypto/tls: maxHandshake is not documented #35153

Description

@zhangyoufu

crypto/tls has a hard-coded limitation const maxHandshake = 65536 for handshake message length.

While a ClientHello message could has a maximum length of 131396 under extreme conditions, according to OpenSSL source code.

The 64KiB limitation is good at security perspective, to reduce server resource consumption. But I think it should be documented, as a Go specific behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions