GH-101100: Fix reference warnings for socket methods
#110114
+17
−17
Merged