sync with hf fix client recv bug