small fixes to search default values and server logging

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6460 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 6edc168cfe
commit 18b21eaffe

@ -147,7 +147,7 @@ public class yacysearch {
prop.put("num-results_itemsPerPage", 10); prop.put("num-results_itemsPerPage", 10);
prop.put("geoinfo", "0"); prop.put("geoinfo", "0");
prop.put("rss_queryenc", ""); prop.put("rss_queryenc", "");
prop.put("meanCount", 5);
return prop; return prop;
} }
@ -501,7 +501,9 @@ public class yacysearch {
// check suggestions // check suggestions
int meanMax = 0; int meanMax = 0;
if (post != null && post.containsKey("meanCount")) { if (post != null && post.containsKey("meanCount")) {
meanMax = Integer.parseInt(post.get("meanCount")); try {
meanMax = Integer.parseInt(post.get("meanCount"));
} catch (NumberFormatException e) {}
} }
prop.put("meanCount", meanMax); prop.put("meanCount", meanMax);
if (meanMax > 0) { if (meanMax > 0) {

@ -864,7 +864,8 @@ public final class serverCore extends AbstractBusyThread implements BusyThread {
if (logerr) Log.logWarning("SERVER", "receive interrupted"); if (logerr) Log.logWarning("SERVER", "receive interrupted");
return null; return null;
} catch (final IOException e) { } catch (final IOException e) {
if (logerr) Log.logWarning("SERVER", "receive closed by IOException: " + e.getMessage()); String message = e.getMessage();
if (logerr && !message.equals("Socket closed") && !message.equals("Connection reset")) Log.logWarning("SERVER", "receive closed by IOException: " + e.getMessage());
return null; return null;
} finally { } finally {
try { try {

Loading…
Cancel
Save