Handle case where timeout=0.