src/java.base/share/classes/java/net/HttpConnectSocketImpl.java
branchniosocketimpl-branch
changeset 57212 28b0946d3b81
parent 57172 63ab5af5d009
child 57238 b145b1b04106
--- a/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Tue Feb 26 08:53:16 2019 +0000
+++ b/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Tue Feb 26 11:14:51 2019 +0000
@@ -25,23 +25,17 @@
 
 package java.net;
 
-import java.io.FileDescriptor;
 import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
-import sun.nio.ch.NioSocketImpl;
-
 /**
  * Basic SocketImpl that relies on the internal HTTP protocol handler
- * implementation to perform the HTTP tunneling and authentication. The
- * sockets impl is swapped out and replaced with the socket from the HTTP
- * handler after the tunnel is successfully setup.
+ * implementation to perform the HTTP tunneling and authentication. Once
+ * connected, all socket operations delegate to a platform SocketImpl.
  *
  * @since 1.8
  */
@@ -80,11 +74,6 @@
             throw new InternalError("Should not reach here", x);
         }
     }
-    HttpConnectSocketImpl(SocketImpl delegate) {
-        super(delegate);
-        this.server = null;
-        throw new InternalError();
-    }
 
     HttpConnectSocketImpl(Proxy proxy, SocketImpl delegate) {
         super(delegate);
@@ -168,8 +157,8 @@
     }
 
     @Override
-    void reset() throws IOException {
-        delegate.reset();
+    void reset() {
+        throw new InternalError("should not get here");
     }
 
     @Override