title: How does a (full featured) long polling server work abstractly
body: <p>Since you're using an event loop as opposed to threads, how does the actual server look?</p>
  
  <p>I know it uses an event loop, but how do you separate out the requests? And how do you prevent your server from running extremely slowly (since it, I assume, can only push one thing at a time since it's threadless?)</p>
  
  <p>Some sort of pseudo-code would be great.</p>
  
  <p>Forgive my ignorance; of course, if there's somewhere that explains it in a non-basic "this is good enough until you get 1000 visitors way", I'd be glad to know of it.</p>