More socket optimization
More socket optimization

Only thread that re-opens the socket is the read one. The write one just
waits until it can send data. Also restarted the read in case the socket
is closed.

acioran/overwatcher