Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Issue: SPR-14772, SPR-14803
  • Loading branch information
rstoyanchev committed Oct 21, 2016
1 parent 5c9c5e0 commit aea3a75
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -90,12 +90,14 @@ public int getBufferSize() {
@Override
public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException {

// Start async before Read/WriteListener registration
AsyncContext asyncContext = servletRequest.startAsync();

ServletServerHttpRequest request = new ServletServerHttpRequest(
((HttpServletRequest) servletRequest), getDataBufferFactory(), getBufferSize());
ServletServerHttpResponse response = new ServletServerHttpResponse(
((HttpServletResponse) servletResponse), getDataBufferFactory(), getBufferSize());

AsyncContext asyncContext = servletRequest.startAsync();
asyncContext.addListener(new EventHandlingAsyncListener(request, response));

HandlerResultSubscriber resultSubscriber = new HandlerResultSubscriber(asyncContext);
Expand Down

0 comments on commit aea3a75

Please sign in to comment.