SocketTimeoutException problem - how to continue after exception
<p>I write and read in my function using Socket class. I used </p>

<pre><code>synchronized(socket){
.//write;
//read;
}
</code></pre>

<p>I am doing this (repeat) every 50-1000 ms. Problem is when somebody ( unknown reason ) pluged off  cable ( I got SocketTimeoutException). When he pluged in again, I need to continue.
What to do ? Do I need to close this socket in catch block and create new ? Or something else ?</p>
