Fixed ht_ssh eof hang problem