fix buffer problem while sendSync timeout