Commit d96803e0 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Changed timeout to 2 seconds.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3670 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1adfedd0
...@@ -56,8 +56,8 @@ public class FaviconServlet extends HttpServlet { ...@@ -56,8 +56,8 @@ public class FaviconServlet extends HttpServlet {
// Create a pool of HTTP connections to use to get the favicons // Create a pool of HTTP connections to use to get the favicons
client = new HttpClient(new MultiThreadedHttpConnectionManager()); client = new HttpClient(new MultiThreadedHttpConnectionManager());
HttpConnectionManagerParams params = client.getHttpConnectionManager().getParams(); HttpConnectionManagerParams params = client.getHttpConnectionManager().getParams();
params.setConnectionTimeout(500); params.setConnectionTimeout(2000);
params.setSoTimeout(500); params.setSoTimeout(2000);
// Load the default favicon to use when no favicon was found of a remote host // Load the default favicon to use when no favicon was found of a remote host
try { try {
URL resource = config.getServletContext().getResource("/images/server_16x16.gif"); URL resource = config.getServletContext().getResource("/images/server_16x16.gif");
...@@ -159,7 +159,7 @@ public class FaviconServlet extends HttpServlet { ...@@ -159,7 +159,7 @@ public class FaviconServlet extends HttpServlet {
} }
} }
catch (IOException ioe) { catch (IOException ioe) {
// We failed again so return null // We failed so return null
return null; return null;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment