Skip to content

crypto/tls: Accept() problem #20889

Description

@chowyu08

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

1.8.3

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

ubuntu14.04

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
}

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