Generic socket pool