Skip to content

crypto/tls: TLS client handshake never times out #2281

Description

@bradfitz
Forking off part of https://golang.org/issue/2263 ,

The TLS server handshake never times out if the underlying socket has a read timeout on
it.

readHandshake() in crypto/tls/conn.go loops forever, continually getting EAGAIN in
readRecord from readFromUntil.

I'm not sure the best place to fix.  I could do my own timeout up in http land, but I
think TLS should probably (also?) deal with this somehow.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions