Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Gurthurb
763ae5cb68
Avoid NullReferenceException if an IAsyncResult or WebRequest doesn't contain a WebResponse property
...
An example of when this happens is when shutting down TrayIcon (using its context menu), at least on Windows. This is quite annoying when debugging with Visual Studio (having the default exception settings).
2020-12-27 22:21:03 +01:00
Kenneth Hsu
83ac03843d
Fix spelling errors in comments.
...
In doing so, we also normalized some line endings.
2019-12-14 09:52:55 -08:00
Kenneth Hsu
afab61a05b
Use pattern matching to simplify casts.
2019-10-19 10:15:38 -07:00
Kenneth Hsu
f12858e6a5
Mark fields that shouldn't be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Hsu
1f8b542604
Use nameof operator when constructing ArgumentNullException.
...
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Kenneth Skovhede
9cdd5ff1e4
Removed the manual call to set up the ssl certificate validator on each request.
...
This fixes #2746
This fixes #2714
2017-09-20 10:51:13 +02:00
Kenneth Skovhede
4679c5eadd
Bugfix for broken 2.0.2.3 canary build
2017-09-09 12:38:46 +02:00
Kenneth Skovhede
19a040970f
Implemented call-context aware settings for HTTP options, temp folder settings, buffers sizes and oauth settings.
...
This makes it more smooth to run multiple operations in parellel, but it should be possible to launch an operation in a separate app-domain
2017-09-04 11:05:16 +02:00
Kenneth Skovhede
54f57bf674
Fixed setting the contentlength and checking if it is possible to set the AllowWriteStreamBuffering property.
...
This fixes #2483
2017-05-18 23:21:48 +02:00
Kenneth Skovhede
55e230ff49
Reworked the way the AllowWriteBuffering flag is set to fix errors caused by ContentLength not being set.
2017-05-17 10:59:07 +02:00
Kenneth Skovhede
f9e5eeae0c
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
2017-04-17 21:47:58 +02:00
Kenneth Skovhede
0c68daff6c
Fixed all whitespace to be 4 spaces instead of tabs
2016-09-15 11:39:27 +02:00
Kenneth Skovhede
5f7e63ae78
Fixed the timeout issue
2016-04-16 17:51:44 +02:00
Kenneth Skovhede
f9a186d6e5
Added a workaround to send the response into the webexception on Mono
2015-06-27 01:10:48 +02:00
Kenneth Skovhede
f935af9968
Reworked the ReadWriteTimeout usage to avoid premature timeouts on Mono
2014-07-11 01:07:48 +02:00
kenneth@hexad.dk
c74092f8a9
Fixed some timeout/abort issues by implementing everything by hand, on top of the async methods.
...
Now the WebRequest.Timeout property ONLY affects the GetRequestStream() and GetResponse() methods as the documentation says it SHOULD.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1331 59da171f-624f-0410-aa54-27559c288bec
2012-06-06 12:55:48 +00:00