Skip to content

fix getSysConn to work with TLS connections#918

Merged
cinchurge merged 2 commits intodevfrom
dheerendra/syscall.fix
May 2, 2024
Merged

fix getSysConn to work with TLS connections#918
cinchurge merged 2 commits intodevfrom
dheerendra/syscall.fix

Conversation

@DheerendraRathor
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

can you rebase off of #919 and push again?

@cinchurge cinchurge merged commit 9e9c14d into dev May 2, 2024
@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