C
C
client242019-03-27 16:41:23
XMPP
client24, 2019-03-27 16:41:23

What is the optimal way to listen for many TCP connections?

The task is to make an autoresponder for one messenger
, I have an asynchronous TCP client implemented
, so when 30-40 accounts work, everything is fine
when I add 100+, not all messages reach me
, tell me in which direction to look
, ideally, you need to keep 1k+ connections

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LiptonOlolo, 2019-03-27
@LiptonOlolo

Each connection is a separate thread.
In general, I would like to know in more detail what you mean by "not all messages reach me."

B
BasiC2k, 2019-03-28
@BasiC2k

Surely keeping 1000+ connections open at the same time is not necessary. A connection can be established when a message is sent and closed immediately upon receipt. Check the architecture of the application. Another (dead end) way is to increase the capabilities of iron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question