Skip to content

Commit

Permalink
Reduce the WebDAV uploader lock timeout from 30 to 10 minutes
Browse files Browse the repository at this point in the history
As suggested by Curtis Rueden in

	imagej/ImageJ#59 (comment)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Mar 26, 2014
1 parent f3d4cf6 commit efb9e80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private String lock(final String path) throws IOException {
+ "</owner>"
+ "</lockinfo>";
try {
final HttpURLConnection connection = connect("LOCK", getURL(path, false), xml, "Timeout", "Second-1800");
final HttpURLConnection connection = connect("LOCK", getURL(path, false), xml, "Timeout", "Second-600");

if (connection.getResponseCode() != 200) {
throw new IOException("Error obtaining lock for " + path + ": "
Expand Down

0 comments on commit efb9e80

Please sign in to comment.