the unit of time is second, right? the default value is 3600=1 hour. my command always last more than 1 hour and then it shows timeout even i set timeout=600000.
anyway, i alter original code to make default value longer and the issue get through.
for simply testing (send(sleep 60,timeout=5)), yes, it works but i dont try sleep 1 hour, 2 hour...