jetty-9 everything but SSL working again

This commit is contained in:
Greg Wilkins 2012-05-09 17:02:38 +02:00
parent 4caced258f
commit 817b9ee5fa
1 changed files with 20 additions and 3 deletions

View File

@ -85,13 +85,30 @@ public abstract class AbstractAsyncConnection implements AsyncConnection
public void completed(Void context)
{
if (_readInterested.compareAndSet(true,false))
onReadable();
{
new Thread(new Runnable()
{
public void run()
{
onReadable();
}
}).start();
}
}
@Override
public void failed(Void context, Throwable x)
public void failed(Void context, final Throwable x)
{
onReadFail(x);
if (_readInterested.compareAndSet(true,false))
{
new Thread(new Runnable()
{
public void run()
{
onReadFail(x);
}
}).start();
}
}
@Override