Added max-idle-time option

hi, Ning:

   Does it make sense to set the max idle time?

thanks