title: what is the cause for java.net.SocketTimeoutException: Read timed out
body: <p>I have written a java code to connect FTP.I used <code>ftp4j-1.7.2</code> jar to connect FTP through java.I have used String[] "<strong>it.sauronsoftware.ftp4j.FTPClient.connect(String arg0)</strong>" and "<strong>it.sauronsoftware.ftp4j.FTPClient.disconnect(boolean arg0)</strong>" methods to connect and disconnect from FTP.The code is working fine when i run it in java 1.5 but it's throwing "<strong>java.net.SocketTimeoutException: Read timed out</strong>" while disconnecting when i run it in java 1.6.Can anyone please let me know solution for this.</p>
  
  <p>Error Log:</p>
  
  <pre><code>Stack:
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
      at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
      at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
      at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
      at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
      at java.io.InputStreamReader.read(InputStreamReader.java:151)
      at it.sauronsoftware.ftp4j.NVTASCIIReader.readLine(NVTASCIIReader.java:105)
      at it.sauronsoftware.ftp4j.FTPCommunicationChannel.read(FTPCommunicationChannel.java:142)
      at it.sauronsoftware.ftp4j.FTPCommunicationChannel.readFTPReply(FTPCommunicationChannel.java:187)
      at it.sauronsoftware.ftp4j.FTPClient.disconnect(FTPClient.java:1133)
  </code></pre>