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.

Leaked Connection handling

See original GitHub issue

Expected behavior

    connections = right handled requests + abrupt connections 

Actual behavior

   connections = right handled requests + abrupt connections +1

Steps to reproduce

   I used netty as http client, then I launched 1000 requests, in ChannelFuture(got from connect)'s handler
   it tells me 975 of them connected, 25 connection failed.
   When I got full and right response from netty-http server, i log a some info.
   I summed right http handling result up, it's totaled as 970.
   In exceptionCaught callback, I log error info, totaled as 4.
   I lost one connection without telling me connection failed or right result came.

Minimal yet complete reproducer code (or URL to code)

server and client

Netty version

    4.0.25.Final

JVM version (e.g. java -version)

   1.8 above

OS version (e.g. uname -a)

   Mac OS X

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
normanmaurercommented, May 31, 2017

Please upgrade to latest netty version and five more informations. Also a reproducer is welcome

0reactions
normanmaurercommented, May 18, 2018

Let me close this … Please reopen if you still think there is an issue after upgrading to latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detecting and Resolving Database Connection Leaks with ...
Take a look at this tutorial that demonstrates how you can find and remove connection leaks between your application and database in Java ......
Read more >
How to solve database connection leaks? - IBM
Ideally, all database connection leaks should be fixed by fixing the offending code, but sometimes it may be difficult to find the connection...
Read more >
The best way to detect database connection leaks
The best way to deal with connection leaks is to fix the underlying code base so that connections are always closed properly. To...
Read more >
Connection Leak - Metawerx Java Wiki
Connection Leak. A situation which occurs when a connection is opened, then forgotten about. This is known as a "leak", because each time...
Read more >
Preventing database connection leaks - Etleap Blog
There are many things that we do to ensure your data moves from one side to the other securely and consistently, and we...
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