fix thread usage by HttpWorker