optimized socket sync