improve webserver shutdown and free some stuff to make the valgrind output cleaner

move first request poll to the event handler

(0) -300 -100 -30 -10 -2 +2 tip

mercurial