Skip to content

Commit

Permalink
Merge pull request #880 from stuartwdouglas/UNDERTOW-1197
Browse files Browse the repository at this point in the history
UNDERTOW-1197 Make sure async dispatch happens with current request/re…
  • Loading branch information
fl4via authored May 15, 2020
2 parents 6dd4bb9 + 802c803 commit b5e03e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ public void run() {
Connectors.executeRootHandler(new HttpHandler() {
@Override
public void handleRequest(final HttpServerExchange exchange) throws Exception {
ServletRequestContext src = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);
src.setServletRequest(servletRequest);
src.setServletResponse(servletResponse);
servletDispatcher.dispatchToPath(exchange, pathInfo, DispatcherType.ASYNC);
}
}, exchange);
Expand Down

0 comments on commit b5e03e5

Please sign in to comment.