|
|
|
|
|
by rorrr
4894 days ago
|
|
> Not from the same ip, from many ips: 192.168.1.200~230 So from 31 IPs, which can be done with 31 keepalive connections. Try hitting your server with even 50K real connections and see how long it lasts (if it lasts at all). > They send a request every 5s~30s to server, and wait for response Exactly. ALL of them don't do anything concurrently, they just sit idly. |
|
Lots of idle connections (doing overlapping long polling) is exactly how many COMET servers work.
We send ~60 "events" via our COMET server (APE from www.ape-project.org) in a typical 2 hour period.
The server side work to decide when/what to send the clients is easy because it's the same information that gets sent whether there is 1 connection or 1,000,000.
The fact they're from just 31 different IP addresses isn't relevant. They're still individual connections from clients to the end server.