improve the problem that connection can hung up.