Fixed read hang problem in ht_ssh