Made server thread handle more than 1 packet