Leaked Connection handling
See original GitHub issueExpected 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)
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:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top 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 >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
Please upgrade to latest netty version and five more informations. Also a reproducer is welcome
Let me close this … Please reopen if you still think there is an issue after upgrading to latest version.