Skip to content

Commit

Permalink
Download-Script
Browse files Browse the repository at this point in the history
  • Loading branch information
UweKeim committed Feb 6, 2015
1 parent f5c80b9 commit 173e256
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
37 changes: 22 additions & 15 deletions Source/Web/UI/Main/DownloadSetup.ashx
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,28 @@ public class DownloadSetup :
}
catch (HttpException x)
{
LogCentral.Current.LogError(
string.Format(
@"HTTP exception during downloading file '{0}'.",
context.Request.QueryString),
x);

if ((uint)x.ErrorCode == 0x800704CD)
{
// Ignore disconnected clients.
}
else
{
throw;
}
}
if (x.ErrorCode == 0x800703E3 ||
x.Message.IndexOf(@"0x800703E3", StringComparison.InvariantCultureIgnoreCase) >= 0 ||
x.ErrorCode == 0x80070016 ||
x.Message.IndexOf(@"0x80070016", StringComparison.InvariantCultureIgnoreCase) >= 0 ||
x.Message.IndexOf(@"The remote host closed the connection", StringComparison.InvariantCultureIgnoreCase) >=
0)
{
// "The remote host closed the connection. The error code is 0x800703E3."

// Ignore.
}
else
{
LogCentral.Current.LogError(
string.Format(
@"HttpException during downloading file '{0}'.",
context.Request.QueryString),
x);

throw;
}
}
catch (Exception x)
{
LogCentral.Current.LogError(
Expand Down

0 comments on commit 173e256

Please sign in to comment.