fixed http connection bug where it would stop responding after 1024 requests