jetty-9: Cosmetics.

This commit is contained in:
Simone Bordet 2012-09-21 15:07:36 +02:00
parent 01c9aa93e9
commit 2e02f153ce
2 changed files with 4 additions and 4 deletions

View File

@ -277,12 +277,12 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
LOG.debug(e);
else
LOG.warn(this.toString(), e);
getEndPoint().close();
close();
}
catch (Exception e)
{
LOG.warn(this.toString(), e);
getEndPoint().close();
close();
}
finally
{

View File

@ -25,7 +25,6 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Locale;
import java.util.concurrent.atomic.AtomicInteger;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
@ -43,6 +42,7 @@ import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.http.HttpURI;
import org.eclipse.jetty.http.HttpVersion;
import org.eclipse.jetty.http.MimeTypes;
import org.eclipse.jetty.io.RuntimeIOException;
import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.server.handler.ErrorHandler;
import org.eclipse.jetty.util.ByteArrayISO8859Writer;
@ -722,7 +722,7 @@ public class Response implements HttpServletResponse
}
catch (IOException e)
{
throw new RuntimeException(e);
throw new RuntimeIOException(e);
}
return true;
}