Skip to content

getsni object for logging#588

Merged
kazuho merged 1 commit intomasterfrom
kazuho/typesafe-getsni
Apr 1, 2026
Merged

getsni object for logging#588
kazuho merged 1 commit intomasterfrom
kazuho/typesafe-getsni

Conversation

@kazuho
Copy link
Copy Markdown
Member

@kazuho kazuho commented Mar 31, 2026

Avoid UB by using a wrapper object to obtain SNI lazily. The cost of the wrapper is assumed to be negligible because, under many calling conventions, an object containing two pointers is passed using two registers, just like two separate pointer arguments.

See: h2o/h2o#3562.

…the wrapper is assumed to be negligible because, under many calling conventions, an object containing two pointers is passed using two registers, just like two separate pointer arguments.
@kazuho kazuho changed the title getsni object object for logging getsni object for logging Mar 31, 2026
@kazuho kazuho mentioned this pull request Mar 31, 2026
kazuho added a commit to h2o/h2o that referenced this pull request Mar 31, 2026
@kazuho kazuho mentioned this pull request Mar 31, 2026
@kazuho kazuho merged commit bb37a17 into master Apr 1, 2026
15 checks passed
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.

1 participant