Improve pause/resume for HttpServer