4 ms·
C1M is the new C10K. C10K is not even close to being a real problem any more. I expect my phone can handle 10K connections. Making a million outbound connecti
by metabrew 16y ago
C1M is the new C10K.
C10K is not even close to being a real problem any more. I expect my phone can handle 10K connections.
Making a million outbound connections, on the other hand, requires a little more care. Mostly because you need 16+ IPs. I ended up writing a small tool in C with libevent to make 1M http connections: http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-3 http://www.metabrew.com/article/a-million-user-comet-applica...
- svlla 16y agoyou're only going to need 16+ IPs if you're making those outbound connections to the same destination IP & port... which seems unlikely.
- nivertech 16y agoYou can do TCP listen on 0.0.0.0:80 (any IP on port 80), but I never saw TCP listen on XXX.XXX.XXX.XXX:* (specific IP with any port) ;)