< prev index next >
src/java.httpclient/share/classes/java/net/http/SSLTunnelConnection.java
Print this page
*** 128,143 ****
}
return l;
}
@Override
! void close() {
! try {
! //System.err.println ("Closing: " + this);
! delegate.channel().close(); // TODO: proper close
! } catch (IOException ex) {
! }
}
@Override
protected ByteBuffer readImpl(int length) throws IOException {
ByteBuffer buf = sslDelegate.allocate(BufType.PACKET, length);
--- 128,139 ----
}
return l;
}
@Override
! public void close() {
! Utils.close(delegate.channel());
}
@Override
protected ByteBuffer readImpl(int length) throws IOException {
ByteBuffer buf = sslDelegate.allocate(BufType.PACKET, length);
< prev index next >