src/java.base/share/classes/java/net/HttpConnectSocketImpl.java
branchniosocketimpl-branch
changeset 57240 f0e45a80ab8f
parent 57238 b145b1b04106
child 57268 adcdd45830a0
equal deleted inserted replaced
57239:7636aef1b197 57240:f0e45a80ab8f
   132         // close the original socket impl and release its descriptor
   132         // close the original socket impl and release its descriptor
   133         close();
   133         close();
   134 
   134 
   135         // update the Sockets impl to the impl from the http Socket
   135         // update the Sockets impl to the impl from the http Socket
   136         SocketImpl si = httpSocket.impl;
   136         SocketImpl si = httpSocket.impl;
   137         ((SocketImpl) this).getSocket().setImpl(si);
   137         getSocket().setImpl(si);
   138 
   138 
   139         // best effort is made to try and reset options previously set
   139         // best effort is made to try and reset options previously set
   140         Set<Map.Entry<Integer,Object>> options = optionsMap.entrySet();
   140         Set<Map.Entry<Integer,Object>> options = optionsMap.entrySet();
   141         try {
   141         try {
   142             for(Map.Entry<Integer,Object> entry : options) {
   142             for(Map.Entry<Integer,Object> entry : options) {