refine code, set socket recv buffer to 32k