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

Closed
chowyu08 opened this issue Jul 3, 2017 · 1 comment
Closed

crypto/tls: Accept() problem #20889

chowyu08 opened this issue Jul 3, 2017 · 1 comment

Comments

@chowyu08
Copy link

@chowyu08 chowyu08 commented Jul 3, 2017

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
}

@davecheney

This comment has been minimized.

Copy link
Contributor

@davecheney davecheney commented Jul 3, 2017

We don't the issue tracker to ask questions. Please see https://golang.org/wiki/Questions for good places to ask. Thanks.

@davecheney davecheney closed this Jul 3, 2017
@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.