0

I'm fairly new to both network programming in general and Netty in particular, so pray forgive my ignorance.

I wrote a small server using Netty's NIO transport, and thus far everything went smoothly. Now I implemented a test that tries to verify that my server does indeed support multiple concurrent connections. Much to my surprise, out of x (I tried different numbers between 10 and 100) connections to my server I open with a test client, only one transitions from state OPEN via BOUND to CONNECTED. All the others never make it past OPEN.

Before I dive into implementation details I would rather like to know whether someone can think of a general explanation for this phenomenon, or has experienced the same problem. Any hints are appreciated.

Regards, Olaf

4

1 回答 1

0

事实证明,42 是在正确的轨道上:深埋在 spring xml 配置中的某个地方,突然出现了一个线程池配置,该配置将核心池大小和最大池大小都设置为 1。愚蠢的我。

于 2012-06-16T21:37:45.223 回答