I'm going to be implementing chat soon in this product I'm building (kind of keeping it on the DL until I have something big to show)... so I started researching comet servers. And I came across this:
http://aleccolocco.blogspot.com/2008/10/gazillion-user-comet-server-with.html
Whoa nelly, this should do nicely. Thought I'd share.
The post was following Richard Jones' Mochiweb/erlang "Million-user" implementation. And he ended up using a libevent-based solution to handle connections in front of Mochiweb :-/
Also note the post on Linux ephemeral port issue: http://aleccolocco.blogspot.com/2008/11/ephemeral-ports-prob...
Niels, from /dev/poll (back then) and libevent fame got into the thread.
Well, OK. It's Sunday and it's beautiful outside, but let's see if I can get some update today.