305300 AsyncContext.start dispatches runnable

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1950 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-06-09 07:40:58 +00:00
parent 7f409167a7
commit 41daed8aae
2 changed files with 11 additions and 2 deletions

View File

@ -8,6 +8,7 @@ jetty-7.1.4-SNAPSHOT
+ 303661 Startup with jetty.sh-Script failes if JETTY_HOME is not writeable
for JETTY_USER
+ 304100 Better document JMX setup in jetty-jmx.xml
+ 305300 AsyncContext.start dispatches runnable
+ 314299 Create test harness for JDBCLoginService
+ 314581 Implement the Sec-Websocket handshake
+ 315190 CrossOriginFilter adds headers not understood by Chrome 5 WebSocket

View File

@ -703,11 +703,19 @@ public class AsyncContinuation implements AsyncContext, Continuation
}
/* ------------------------------------------------------------ */
public void start(Runnable run)
public void start(final Runnable run)
{
final AsyncEventState event=_event;
if (event!=null)
((Context)event.getServletContext()).getContextHandler().handle(run);
{
_connection.getServer().getThreadPool().dispatch(new Runnable()
{
public void run()
{
((Context)event.getServletContext()).getContextHandler().handle(run);
}
});
}
}
/* ------------------------------------------------------------ */