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

fix getSysConn to work with TLS connections #918

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

DheerendraRathor
Copy link
Contributor

tls.Conn by default doesn't implement syscall.Conn and hence tchannel emits onnection does not implement SyscallConn. log a lot.

Since go 1.18, tls.Conn exposes method NetConn() to expose raw underlying TCP connection. This is used for getting the syscall.Conn.

@DheerendraRathor DheerendraRathor force-pushed the dheerendra/syscall.fix branch from 8d7c128 to e32802d Compare May 1, 2024 07:47
@DheerendraRathor DheerendraRathor force-pushed the dheerendra/syscall.fix branch from e32802d to 816a8d8 Compare May 1, 2024 07:53
Copy link
Collaborator

@cinchurge cinchurge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cinchurge
Copy link
Collaborator

can you rebase off of #919 and push again?

@cinchurge cinchurge merged commit 9e9c14d into dev May 2, 2024
2 of 3 checks passed
@DheerendraRathor DheerendraRathor deleted the dheerendra/syscall.fix branch May 2, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants