Change the sleep method in TTL certificate cache, hopefully it will fix the hanging issue.