Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Adding retry function for seed uploading

theli3227a9eba557
diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java
index 893261b6d..79dfbc590 100644
--- a/htroot/SettingsAck_p.java
+++ b/htroot/SettingsAck_p.java
@@ -302,6 +302,20 @@ public class SettingsAck_p {
return prop;
}
+ if (post.containsKey("seedUploadRetry")) {
+ try {
+ // trying to upload the seed-list file
+ yacyCore.saveSeedList(env);
+ prop.put("info", 13);
+ prop.put("info_success",1);
+ } catch (Exception e) {
+ prop.put("info",14);
+ prop.put("info_errormsg",e.getMessage().replaceAll("\n","<br>"));
+ env.setConfig("seedUploadMethod","none");
+ }
+ return prop;
+ }
+
if (post.containsKey("seedSettings")) {
try {
// getting the currently used uploading method
diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html
index 7305d22a7..e3b6f5b3e 100644
--- a/htroot/Settings_p.html
+++ b/htroot/Settings_p.html
@@ -218,7 +218,8 @@ but only if there had been changes to the seed-list.
#{seedUploadMethods}#
<option value="#[name]#" #(selected)#::selected#(/selected)#>#[name]#</option>
#{/seedUploadMethods}#
- </select></td>
+ </select>
+ <input type="submit" name="seedUploadRetry" value="Retry Uploading"></td>
<td><i>Here you can specify which upload method should be used. Select 'none' to deactivate uploading.</i></td>
</tr>
<tr valign="top">