do not use NIO cache for SSL
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1689 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
a4d20486b2
commit
423c17b1c8
|
@ -47,6 +47,7 @@ import org.eclipse.jetty.server.ResourceCache;
|
|||
import org.eclipse.jetty.server.Response;
|
||||
import org.eclipse.jetty.server.handler.ContextHandler;
|
||||
import org.eclipse.jetty.server.nio.NIOConnector;
|
||||
import org.eclipse.jetty.server.ssl.SslConnector;
|
||||
import org.eclipse.jetty.util.IO;
|
||||
import org.eclipse.jetty.util.MultiPartOutputStream;
|
||||
import org.eclipse.jetty.util.TypeUtil;
|
||||
|
@ -380,7 +381,7 @@ public class DefaultServlet extends HttpServlet implements ResourceFactory
|
|||
HttpContent content=null;
|
||||
|
||||
Connector connector = HttpConnection.getCurrentConnection().getConnector();
|
||||
ResourceCache cache=(connector instanceof NIOConnector) ?_nioCache:_bioCache;
|
||||
ResourceCache cache=(connector instanceof NIOConnector && !(connector instanceof SslConnector)) ?_nioCache:_bioCache;
|
||||
try
|
||||
{
|
||||
// Try gzipped content first
|
||||
|
|
Loading…
Reference in New Issue