delete while(1)
fix a bug when file size is n*512 send a empty package