Пример #1
0
        public virtual void TestTimeout()
        {
            Configuration  conf = new Configuration();
            URI            uri  = URI.Create("hftp://localhost");
            HftpFileSystem fs   = (HftpFileSystem)FileSystem.Get(uri, conf);
            URLConnection  conn = fs.connectionFactory.OpenConnection(new Uri("http://localhost"
                                                                              ));

            NUnit.Framework.Assert.AreEqual(URLConnectionFactory.DefaultSocketTimeout, conn.GetConnectTimeout
                                                ());
            NUnit.Framework.Assert.AreEqual(URLConnectionFactory.DefaultSocketTimeout, conn.GetReadTimeout
                                                ());
        }