How to re-connect to `bitcoind -printtoconsole` after socket timeout?
I don't think you can reconnect to it easily, but for next time, you could create a screen session and start bitcoind inside of it. That way you could reconnect to it with screen -r