Skip to content

Add new method SSL.getVersionInt to avoid string allocation on initial ssl handshake#954

Merged
normanmaurer merged 1 commit intonetty:mainfrom
doom369:get_version_int
Feb 26, 2026
Merged

Add new method SSL.getVersionInt to avoid string allocation on initial ssl handshake#954
normanmaurer merged 1 commit intonetty:mainfrom
doom369:get_version_int

Conversation

@doom369
Copy link
Copy Markdown
Contributor

@doom369 doom369 commented Feb 14, 2026

Right now Netty uses SSL.getVersion(), which allocates a string when the handshake is finished, we can easily avoid this allocation by introducing a new method SSL.getVersionInt(), which would return the protocol version as an int instead of a string.

Related to netty/netty#16278

@normanmaurer normanmaurer added this to the 2.0.75.Final milestone Feb 26, 2026
@normanmaurer normanmaurer merged commit 5f9becb into netty:main Feb 26, 2026
10 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.

3 participants