mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
Issue #3989 - Cleaning up ManagedSelector.onSelectFailed
+ Based on PR review Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
f6aea22979
commit
68382b9549
@ -123,23 +123,11 @@ public class ManagedSelector extends ContainerLifeCycle implements Dumpable
|
|||||||
start._started.await();
|
start._started.await();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onSelectFailed(Throwable cause) throws Exception
|
protected void onSelectFailed(Throwable cause)
|
||||||
{
|
{
|
||||||
// override to change behavior
|
// override to change behavior
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifySelectFailed(Throwable cause)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
onSelectFailed(cause);
|
|
||||||
}
|
|
||||||
catch (Throwable x)
|
|
||||||
{
|
|
||||||
LOG.info("Failure while calling onSelectFailed()", x);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int size()
|
public int size()
|
||||||
{
|
{
|
||||||
Selector s = _selector;
|
Selector s = _selector;
|
||||||
@ -520,7 +508,7 @@ public class ManagedSelector extends ContainerLifeCycle implements Dumpable
|
|||||||
if (isRunning())
|
if (isRunning())
|
||||||
{
|
{
|
||||||
LOG.warn("Fatal select() failure", x);
|
LOG.warn("Fatal select() failure", x);
|
||||||
notifySelectFailed(x);
|
onSelectFailed(x);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user