Skip to content

Commit

Permalink
Set MaxIdleTime for http downloads to 60 seconds as per its comment (…
Browse files Browse the repository at this point in the history
…which is copied and pasted from CapsBase) this may need some tweaking to find the optimum setting.
  • Loading branch information
cinderblocks committed Jan 23, 2022
1 parent ba89127 commit 9413585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibreMetaverse/DownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected virtual HttpWebRequest SetupRequest(Uri address, string acceptHeader)
request.ClientCertificates.Add(ClientCert);

// Leave idle connections to this endpoint open for up to 60 seconds
request.ServicePoint.MaxIdleTime = 0;
request.ServicePoint.MaxIdleTime = 1000 * 60;
// Disable stupid Expect-100: Continue header
request.ServicePoint.Expect100Continue = false;
// Crank up the max number of connections per endpoint
Expand Down

0 comments on commit 9413585

Please sign in to comment.