Check the max-transfer-time-in and max-transfer-idle-in options. (cherry picked from commit 5324f047b2)
5324f047b2