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: allow access to file descriptor for tls.Conn #29257

Open
ja-nixi opened this Issue Dec 14, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@ja-nixi
Copy link

ja-nixi commented Dec 14, 2018

Currently it is not possible to access FD in tls.Conn
in tls.Conn the underlying net.Conn is not accessible except in ClientHelloInfo

Senario:
in net/http we can't access the FD for https connections but we can access it for http connections
in a WebSocket connection after Hijack, when the connection is http we can use netpoll but when its https we can't

the only workaround right now is using a https to http proxy but it's not efficient as exposing the net.Conn on tls.Conn

/cc @FiloSottile

@ja-nixi

This comment has been minimized.

Copy link

ja-nixi commented Dec 17, 2018

/cc @bradfitz

@bradfitz

This comment has been minimized.

Copy link
Member

bradfitz commented Dec 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment