Factor out socket creation to a protected method, to facilitate easier subclassing, enabling something other than the default Socket factories to be used.
Factor out socket creation to a protected method, to facilitate easier subclassing, enabling something other than the default Socket factories to be used.