src/share/classes/sun/net/www/protocol/ftp/FtpURLConnection.java

Print this page

        

*** 44,53 **** --- 44,54 ---- import java.net.Proxy; import java.net.ProxySelector; import java.util.StringTokenizer; import java.util.Iterator; import java.security.Permission; + import sun.net.NetworkClient; import sun.net.www.MessageHeader; import sun.net.www.MeteredStream; import sun.net.www.URLConnection; import sun.net.www.protocol.http.HttpURLConnection; import sun.net.ftp.FtpClient;
*** 100,114 **** static final int NONE = 0; static final int ASCII = 1; static final int BIN = 2; static final int DIR = 3; int type = NONE; ! /* Redefine timeouts from java.net.URLConnection as we nee -1 to mean * not set. This is to ensure backward compatibility. */ ! private int connectTimeout = -1; ! private int readTimeout = -1; /** * For FTP URLs we need to have a special InputStream because we * need to close 2 sockets after we're done with it : * - The Data socket (for the file). --- 101,115 ---- static final int NONE = 0; static final int ASCII = 1; static final int BIN = 2; static final int DIR = 3; int type = NONE; ! /* Redefine timeouts from java.net.URLConnection as we need -1 to mean * not set. This is to ensure backward compatibility. */ ! private int connectTimeout = NetworkClient.DEFAULT_CONNECT_TIMEOUT;; ! private int readTimeout = NetworkClient.DEFAULT_READ_TIMEOUT;; /** * For FTP URLs we need to have a special InputStream because we * need to close 2 sockets after we're done with it : * - The Data socket (for the file).