Changes to support Nipple using Agent instead of maxSockets