I'm trying to make something that once it is disconnected will automatically try to reconnect. I'll add some more features in later so it doesn't hammer the server but right now I just want to keep it simple and get that part working. The problem is that when I use sock.close I get an error message of
Code:
Bad File Descriptor
and if I either use shutdown or just go straight to reconnecting I get:
Code:
Transport endpoint is already c
...