Changed the thread handling code, event based thread queueing is way too slow for high loads, the events are never delivered. HttpFileServer crashed with a SIGPIPE if flush() is called on a closed socket