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

proposal: crypto/tls: allow access to file descriptor for tls.Conn #29257

Closed
ja-nixi opened this Issue Dec 14, 2018 · 5 comments

Comments

Projects
None yet
6 participants
@ja-nixi
Copy link

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
Author

commented Dec 17, 2018

/cc @bradfitz

@bradfitz

This comment has been minimized.

Copy link
Member

commented Dec 17, 2018

@odeke-em odeke-em changed the title crypto/tls: allow access to file descriptor for tls.Conn proposal: crypto/tls: allow access to file descriptor for tls.Conn Mar 7, 2019

@gopherbot gopherbot added the Proposal label Mar 7, 2019

@odeke-em

This comment has been minimized.

Copy link
Member

commented Mar 7, 2019

I have marked this as a proposal for it to get the proposal treatment.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Mar 20, 2019

What do you actually want to do with the file descriptor?

@gopherbot

This comment has been minimized.

Copy link

commented Apr 20, 2019

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this Apr 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.