question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider programmatically exposing current Netty version

See original GitHub issue

Sometimes Netty makes behavioral/functional changes between minor releases. For example, a recent PR, https://github.com/netty/netty/pull/9442, fixed a race condition with the HTTP/2 codecs. While this is a backwards compatible change from an API perspective, usage of these codecs could yield different results with different versions of Netty.

Visibility on the current Netty version could be beneficial from this perspective alone, esp. for logging purposes… but in the scenario where you might be vending a library that depends on a non-shaded version of Netty, it might be critically important what version of Netty is available on the class path. If the current version was programmatically exposed, libraries could use it to make decisions in a similar fashion that Netty itself uses PlatformDependent.javaVersion().

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jakub-dzoncommented, Oct 17, 2019

@Bennett-Lynch It seems that io.netty.util.Version should do the trick.

0reactions
normanmaurercommented, Oct 22, 2019

@jakub-dzon you are completely right! I honestly did completely forget we already have something like this 🤦‍♂ .

@Bennett-Lynch I will close the ticket now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reactor Netty Reference Guide
Latest Version and Copyright Notice. The Reactor Netty reference guide is available as HTML documents. The latest copy is available at https:// ...
Read more >
Index (Netty API Reference (4.1.85.Final))
Exposes the configuration of an AbstractBootstrap . AbstractBootstrapConfig(B) - Constructor ... Returns the name of the current application-level protocol.
Read more >
Programmatically find Netty port spring boot 2 - Stack Overflow
I am running the service in a docker container on AWS in EC2 container service - I therefore set server.port=0, and cannot use...
Read more >
Web on Reactive Stack - Spring
Spring Boot defaults to Netty, because it is more widely used in the asynchronous, non-blocking space and lets a client and a server...
Read more >
Micronaut Tutorial: Server Application - Piotr's TechBlog
By default Netty server runs on port 8080 . You may override it to force the server to run on a specific port...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found