My little contribution here..I think i may have found a new failure mode for this socket error..I was getting the same socket connection error on my D3.
Tried everything - flashed firmware, checked router, changed PSU's..then followed the Bitmain's Troubleshooting tree..the recommend to power only the control board and see if you still get this error - if you dont, then its the hash boards (which is worse) ...I was still getting the error after only powering the control board..so was getting ready to change that..my unit is outside warranty, hence was going to order a new control board..slid out the old board, as you know, the board slides smoothly on guide rails inside the metal cover..to install, you got to push it back till the side pins snap back and lock the board..so i slid the board back and noticed that the reset button was not all the way depressed..a slight play in the position was pressing the reset button..i think..after i set it in position, the socket error was gone...not sure if this helps, but whateva..