Replace deprecated socket option