474634 - AsyncListener.onError() handling.

Fixed AsyncContextTests
This commit is contained in:
Greg Wilkins 2015-08-13 18:12:38 +10:00
parent f21ea15725
commit 8c0e4f53d3
2 changed files with 2 additions and 2 deletions

View File

@ -319,6 +319,7 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
case ERROR_DISPATCH:
{
_request.setHandled(false);
_response.resetBuffer();
_response.getHttpOutput().reopen();
_request.setDispatcherType(DispatcherType.ERROR);

View File

@ -173,7 +173,6 @@ public class AsyncContextTest
"Connection: close\r\n" +
"\r\n";
String responseString = _connector.getResponses(request);
System.err.println(responseString);
BufferedReader br = new BufferedReader(new StringReader(responseString));
@ -411,7 +410,7 @@ public class AsyncContextTest
BufferedReader br = new BufferedReader(new StringReader(responseString));
assertEquals("HTTP/1.1 500 Async Exception",br.readLine());
assertEquals("HTTP/1.1 500 Server Error",br.readLine());
br.readLine();// connection close
br.readLine();// server
br.readLine();// empty