Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto/tls: Accept() problem #20889

chowyu08 opened this issue Jul 3, 2017 · 1 comment

crypto/tls: Accept() problem #20889

chowyu08 opened this issue Jul 3, 2017 · 1 comment


Copy link

chowyu08 commented Jul 3, 2017

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


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


What did you do?

create a tls server, and read client's ConnectionState

What did you expect to see?

error is: tlsconfig.ConnectionState undefined (type *tls.Config has no field or method ConnectionState)

// Accept waits for and returns the next incoming TLS connection.
// The returned connection is of type *Conn.
func (l *listener) Accept() (net.Conn, error) {
c, err := l.Listener.Accept()
if err != nil {
return nil, err
return Server(c, l.config), nil

Copy link

We don't the issue tracker to ask questions. Please see for good places to ask. Thanks.

@mikioh mikioh changed the title tls Accept() problem crypto/tls: Accept() problem Jul 10, 2017
@golang golang locked and limited conversation to collaborators Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

3 participants