Cient socket fd leak when access an URL with bad domain

This commit is contained in:
Jan Bartel 2011-10-10 13:09:58 +11:00
parent 64ce44c3dc
commit ea56eaff00
1 changed files with 6 additions and 1 deletions

View File

@ -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)
{