474634 - AsyncListener.onError() handling.
Fixed AsyncContextTests
This commit is contained in:
parent
f21ea15725
commit
8c0e4f53d3
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue