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.

Disconnect error not detected

See original GitHub issue

Current 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:open
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
rossabakercommented, Aug 6, 2021

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 the EOF in an exception that provides request context. 🤔

Read more comments on GitHub >

github_iconTop 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 >

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