fixed false positives for keep_alive() not being invoked.