New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freeChannels isn't being released (Netty) #831
Comments
Please upgrade to 1.9.11: #820 |
Thanks for the fast reply! |
Hi Here the code inside the for loop is blocked.(as get() is called on the future). While executing this piece of code, if checked for the netstat , it would show only one connection. If for loop is executed in asynchronous way the problem of IO exception is coming. How to control this. Pl. correct me if I am wrong. Thanks in advance. |
@srirama-rayaprolu AHC maxConnection mechanism is a security, it doesn't come with a queue for buffering the excessive requests. If you want one, you have to write one. Contributions welcome. |
For some reason, the following code:
Will throw the following exception:
java.io.IOException: Too many connections per host 100
As its seems,
abortChannelPreemption
(inNettyConnectListener
) is never being called because the conditionif (future.isDone())
is always false, thusfreeChannels
(ChannelManager
) never being released.Happens on AHC 1.9.10, Java version "1.7.0_65".
The text was updated successfully, but these errors were encountered: