Socket library optimization.