jira-importer opened a new issue, #1480: URL: https://github.com/apache/httpcomponents-core/issues/1480
**[Mohan Rao](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=swatkatz)** opened **[HTTPCORE-240](https://issues.apache.org/jira/browse/HTTPCORE-240?redirect=false)** and commented > We are using HttpCore 4.0.1 > > Also in particular in DefaultConnectingIOReactor - > > SocketChannel socketChannel; > try { > socketChannel = SocketChannel.open(); > socketChannel.configureBlocking(false); > } catch (IOException ex) { > throw new IOReactorException("Failure opening socket", ex); > } > try { > validateAddress(request.getLocalAddress()); > validateAddress(request.getRemoteAddress()); > > if (request.getLocalAddress() != null) { > socketChannel.socket().bind(request.getLocalAddress()); > } > boolean connected = > > socketChannel.connect(request.getRemoteAddress()); > if (connected) { > prepareSocket(socketChannel.socket()); > ChannelEntry entry = new ChannelEntry(socketChannel, > request); > addChannel(entry); > return; > } > } catch (IOException ex) { > request.failed(ex); > return; > } > > > In the above code - should the socketChannel be closed before request.failed > is called ? « [hide part of quote] You are right. It should be but it is not. Please raise an issue in JIRA for this defect. Oleg --- **Affects:** 4.0.1, 4.1-beta2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
