Experiment to see if out-of-memory issues are solved by disabling the write buffer on HTTP requests.
This should help with #2320 and #2432
This commit is contained in:
@@ -93,6 +93,10 @@ namespace Duplicati.Library.Utility
|
||||
m_activity_timeout = ((HttpWebRequest)m_request).ReadWriteTimeout;
|
||||
|
||||
((HttpWebRequest)m_request).ReadWriteTimeout = System.Threading.Timeout.Infinite;
|
||||
|
||||
// Prevent in-memory buffering causing out-of-memory issues
|
||||
((HttpWebRequest)m_request).AllowReadStreamBuffering = false;
|
||||
((HttpWebRequest)m_request).AllowWriteStreamBuffering = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user