Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/handler/RequestLogHandler.java @ 929:3191abe890ef
remove isInitial()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 19:13:46 -0600 |
parents | 23a57aad34c0 |
children | a088981f9cd4 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/RequestLogHandler.java Sun Oct 09 18:54:32 2016 -0600 +++ b/src/org/eclipse/jetty/server/handler/RequestLogHandler.java Sun Oct 09 19:13:46 2016 -0600 @@ -35,8 +35,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.eclipse.jetty.continuation.Continuation; -import org.eclipse.jetty.continuation.ContinuationListener; import org.eclipse.jetty.http.HttpHeaders; import org.eclipse.jetty.server.AsyncContinuation; import org.eclipse.jetty.server.Request; @@ -65,11 +63,7 @@ public void handle(String target, final Request baseRequest, HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException { - AsyncContinuation continuation = baseRequest.getAsyncContinuation(); - if (!continuation.isInitial()) - { - baseRequest.setDispatchTime(System.currentTimeMillis()); - } + baseRequest.setDispatchTime(System.currentTimeMillis()); try { @@ -173,17 +167,13 @@ buf.append(' '); buf.append(request.getProtocol()); buf.append("\" "); - if (request.getAsyncContinuation().isInitial()) - { - int status = response.getStatus(); - if (status <= 0) - status = 404; - buf.append((char)('0' + ((status / 100) % 10))); - buf.append((char)('0' + ((status / 10) % 10))); - buf.append((char)('0' + (status % 10))); - } - else - buf.append("Async"); + + int status = response.getStatus(); + if (status <= 0) + status = 404; + buf.append((char)('0' + ((status / 100) % 10))); + buf.append((char)('0' + ((status / 10) % 10))); + buf.append((char)('0' + (status % 10))); long responseLength = response.getContentCount(); if (responseLength >= 0)