io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:11235 when established 2000 connections from netty client program at netty client side
See original GitHub issueExpected behavior
No Error
Actual behavior
As i am making 2000 concurrent connections(TLS Connections) from java netty client program to netty server which is running on same host. But after 500 or 1000 connections i am getting below error at netty client side,
Jan 16, 2017 8:30:28 PM io.netty.util.concurrent.DefaultPromise notifyListener0 WARNING: An exception was thrown by veni.client.Client$1.operationComplete() io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:11235 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:346) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:630) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:565) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:479) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:441) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Unknown Source)
but when i run the same client program with inserting Thread.sleep(50) i didn’t get above error at client side. So whats the reason or whats wrong in the code?
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
https://drive.google.com/drive/folders/0B4wkBrJ4uyHMY3lraVVMWnBBRE0?usp=sharing
Netty version
Netty client version 4.1.7.Final and netty server v
ersion 4.1.7.Final
JVM version (e.g. java -version
)
JRE1.8.0_101
OS version (e.g. uname -a
)
Windows Server 2012 R2 Standard
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
I can’t Play murderer In this sever in minecraft mc.pigparty.eu so if you can fix i will be super happy
Hi @maybhi I met this same issue, have you solved this issue now ? If you have resolved it, can you please tell me the solution? Thanks a lot !