Ok, that was fun …
I had the esp32 device configured on 2 diffrent RPI / HA installations.
The socket operation failed message was from the ‘wrong’ HA still trying to connect.
When I removed the device, the message stopped …
All working nicely now…