422723 - Dispatch failed callbacks to avoid blocking selector
Handled rejected execution exception
This commit is contained in:
parent
ebd0ad90e0
commit
9c39b2e631
|
@ -715,14 +715,22 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
||||||
public void failed(final Throwable x)
|
public void failed(final Throwable x)
|
||||||
{
|
{
|
||||||
super.failed(x);
|
super.failed(x);
|
||||||
getExecutor().execute(new Runnable()
|
try
|
||||||
{
|
{
|
||||||
@Override
|
getExecutor().execute(new Runnable()
|
||||||
public void run()
|
|
||||||
{
|
{
|
||||||
_callback.failed(x);
|
@Override
|
||||||
}
|
public void run()
|
||||||
});
|
{
|
||||||
|
_callback.failed(x);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (RejectedExecutionException e)
|
||||||
|
{
|
||||||
|
LOG.debug(e);
|
||||||
|
_callback.failed(x);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue