equal
deleted
inserted
replaced
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) { |