Make 'socket' field protected for overriding.