More useful exception logging on ReadTimeoutHandler
See original GitHub issueExpected behavior
When ReadTimeoutHandler throws a ReadTimeoutException, it would be useful if the exception message shows the timeout value.
Actual behavior
Currently, it does not include any useful information to the user:
io.netty.handler.timeout.ReadTimeoutException: null
Steps to reproduce
Perform a long HTTP request over the timeout.
Netty version
4.1.72.Final
JVM version (e.g. java -version
)
Java 17
OS version (e.g. uname -a
)
Mac OS
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Handling ReadTimeoutHandler time out - Stack Overflow
It's basically because you put the ReadTimeoutHandler in the wrong position. Please put it in the first position of the pipeline (i.e. before...
Read more >Set a Timeout in Spring 5 Webflux WebClient - Baeldung
Learn how to configure timeout settings for our WebClient using Spring Webflux.
Read more >Logging Exceptions in Java - Loggly
A look at common approaches to exception handling and logging in Java. ... error, it usually results in the loss of more useful...
Read more >Reactor Netty Reference Guide
Reactor Netty provides an easy to use and configure TcpServer . It hides most of the Netty functionality that is needed to create...
Read more >Web on Reactive Stack - Spring
Spring Boot defaults to Netty, because it is more widely used in the ... Provide handling for exceptions from the chain of WebFilter ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jonathannaguin PTAL https://github.com/netty/netty/pull/12234
@jonathannaguin I think we can change the protection level… Let me do a PR