Cient socket fd leak when access an URL with bad domain
This commit is contained in:
parent
64ce44c3dc
commit
ea56eaff00
|
@ -113,7 +113,12 @@ class SelectConnector extends AbstractLifeCycle implements HttpClient.Connector
|
|||
_httpClient.schedule(connectTimeout,_httpClient.getConnectTimeout());
|
||||
_connectingChannels.put(channel,connectTimeout);
|
||||
}
|
||||
|
||||
}
|
||||
catch (UnresolvedAddressException ex)
|
||||
{
|
||||
if (channel != null)
|
||||
channel.close();
|
||||
destination.onConnectionFailed(ex);
|
||||
}
|
||||
catch(IOException ex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue