|
What's the problem?
It unlikely that any single computer will handle 400 simultaneous network connections, do you expect them all to work at once?
In general, its more reliable to queue requests in the main thread, and have one or more workers that do the actual network communications. The keeps one request from blocking all others.
The Java concurrency modules have suitable tools to build this.
|