In chronic infections, the immune system can become exhausted. Researchers have looked into how this works.