*) Adding retry function for seed uploading

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@298 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent dff937a9a3
commit 3227a9eba5

@ -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

@ -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">

Loading…
Cancel
Save