Disconnect error not detected
See original GitHub issueCurrent disconnect handling implementation in ChannelHead
relies on matching IOException.getMessage
. This is problematic - for example, on Windows these messages are localized, which leads to junk log messages:
2019-05-31 10:35:21,048 WARN: Channel IOException not known to be a disconnect error //[Thread-12] o.h.blaze.channel.nio2.ByteBufferHead.checkError() L:18
java.io.IOException: Удаленный хост принудительно разорвал существующее подключение
Shouldn’t there be a better way to detect such situations? What do other libraries do?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to Fix ERR INTERNET DISCONNECTED Error
a) Press Win key and type “internet options“. · b) Go to Connections tab, and then click on LAN settings. · c) Ensure...
Read more >FIX 'the device has either stopped responding or is ... - EaseUS
Try to uninstall and reinstall USB controllers to remove the error. Step 1. Press "Windows + R" keys to open the Run dialog...
Read more >How To Fix The Starlink Disconnected Error
In this guide we show you how to fix the most common error with Starlink, the "Starlink Disconnected" error.
Read more >This device has either stopped responding or has been ...
Go into Settings > Devices and look for the phone, highlight to Remove Device. Next go into Device Manager, accessed by right clicking...
Read more >TIMBERLINE: IGNITOR NOT DETECTED/DISCONNECTED
WHAT TO DO ; Run a SELF-TEST from your controller. If the ignitor still shows an error, proceed to the next step. ;...
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 FreeTop 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
Top GitHub Comments
This is way better than we do, but still not great: https://github.com/netty/netty/blob/f17bfd0f64189d91302fbdd15103788bf9eabaa2/handler/src/main/java/io/netty/handler/ssl/SslHandler.java#L1100
The EOF is a regrettable design, because it’s both a command an an exception. It suppresses the stack trace because the exception is used for control flow and is expected to happen a lot.
We might be able to enhance the request loop in
BlazeClient
to wrap theEOF
in an exception that provides request context. 🤔