Skip to content

crypto/tls: Not stable tls handshake #18608

Description

@ikhahmedov

What version of Go are you using (go version)?

go version go1.7.4 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build435595517=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

g++ --version
g++ (Ubuntu 4.9.2-10ubuntu13) 4.9.2

What did you do?

We are opening TLS connection to server, sending basic command implemented there.
occasionally socket returns EOF while in handshake process.
https://github.com/golang/go/blob/go1.7.4/src/crypto/tls/handshake_client.go#L637

Code: https://play.golang.org/p/-JK8L3ONcg

What did you expect to see?

OK, all the time, because executable is restarted every time we make connection

What did you see instead?

25% percent of TLS connection opening is failed with EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions