What is the best way to listen to many TCP connections?
The task is to make an answering machine for a single instant messengers
I have implemented an asynchronous TCP client
so when running 30-40 accounts everything is fine
when I add 100+ not all messages I hear
prompt in what direction to look
ideally you want to keep 1K+ connections
Each connection is a separate thread.
In General, I would like to know what you mean by "not all messages I hear".
Emmitt.Heathcote answered on March 19th 20 at 08:55
Be sure to keep both open 1000+ connections - no need. The connection can be set when sending a message and closing immediately upon receipt. Check the application architecture. Other (dead-end) way to increase the availability of iron.