title: Sometimes java.net.SocketTimeoutException: Read timed out. Sometimes not
body: <p>I have this strange error with the</p>
  
  <pre><code>java.net.SocketTimeoutException: Read timed out
  </code></pre>
  
  <p>And maybe someone of you can help to fix this problem.</p>
  
  <p>The facts are these, I'm working with <strong>Eclipse</strong>, with a <strong>Tomcat v7</strong>. Then I execute a function which have</p>
  
  <pre><code>_call.setTimeout(3500);
  </code></pre>
  
  <p>In my <strong>Windows->Preferences->Java->Debug</strong> I have</p>
  
  <pre><code>Debugger timeout(ms):3000
  Launch timeout(ms):20000
  </code></pre>
  
  <p>In my <strong>Servers->Tomcat v7.0->Timeouts</strong> I have</p>
  
  <pre><code>Start(in seconds): 45
  Stop(in seconds): 15
  </code></pre>
  
  <p>Now, when I run my WebService, sometimes it works perfect, sometimes I get the <code>RemoteException e2: java.net.SocketTimeoutException:</code> Read timed out</p>
  
  <p>Did I set the <code>Timeout</code> correctly? 
  Because I tried to change it and stills happens the same, <strong>sometimes gets the error, sometimes not</strong>.</p>