aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/PlayTo/SsdpHttpClient.cs
AgeCommit message (Collapse)Author
2022-03-08Rework SsdpHttpClientBond_009
2021-09-26Remove all instances of en-US cultureCody Robibero
2021-09-21SsdpHttpClient: Ensure successful status code before reading responseBond_009
2021-05-07Enable nullable reference types for Emby.DlnaBond_009
2021-04-17Remove unused using directivesBaronGreenback
2021-03-22DLNA Exception catchingBaronGreenback
2021-03-06Use XDocument.LoadAsync instead of XDocument.ParseBond_009
2020-12-02Minor improvementsBond_009
2020-11-17Pass cancellation where possibleBond_009
2020-09-07Fix ObjectDisposedExceptionBond_009
``` System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.StringContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.CopyToAsync(Stream stream, TransportContext context, CancellationToken cancellationToken) at System.Net.Http.HttpConnection.SendRequestContentAsync(HttpRequestMessage request, HttpContentWriteStream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Emby.Dlna.PlayTo.SsdpHttpClient.SendCommandAsync(String baseUrl, DeviceService service, String command, String postData, String header, CancellationToken cancellationToken) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/SsdpHttpClient.cs:line 41 at Emby.Dlna.PlayTo.Device.GetTransportInfo(TransportCommands avCommands, CancellationToken cancellationToken) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/Device.cs:line 629 at Emby.Dlna.PlayTo.Device.TimerCallback(Object sender) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/Device.cs:line 445 ```
2020-09-03Revert "Remove ResponseHeadersRead where applicable"crobibero
This reverts commit 85844a84b68f7da07695c4e3fa4d187acc559797.
2020-09-03Remove ResponseHeadersRead where applicablecrobibero
2020-09-01use UserAgent.ParseAdd where possiblecrobibero
2020-09-01Properly migrate all HttpCompletionOptioncrobibero
2020-08-31migrate to IHttpClientFactory in Emby.Dlnacrobibero
2020-06-15fix SA1508telans
2020-04-02Fix some warningsBond_009
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2020-01-22Improvements to dlna serverBond_009
* Improve response writer * Add analyzers * Error on warnings in release mode * Disable doc warnings
2019-08-16Clean up livestreaming codeBond_009
2019-08-11Check checksum for plugin downloadsBond_009
* Compare the MD5 checksum when downloading plugins * Reduced log spam due to http requests * Removed 'GetTempFileResponse' function from HttpClientManager * Fixed caching for HttpClientManager
2019-07-13Properly set content typeBond_009
2019-07-06Fixes issues with HttpClientManagerBond_009
2019-01-13Visual Studio Reformat: Emby.DlnaErwin de Haan
2019-01-11Merge branch 'dev' into code-cleanupErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2019-01-07remove trailing whitespacehawken
2018-12-13Remove Emby branding from DLNA serverBen Magee
2018-09-12Update to 3.5.2 and .net core 2.1stefan
2017-11-23reduce dlna chatterLuke Pulverenti
2017-10-22adjust header valuesLuke Pulverenti
2017-10-22separate encoding from content type valuesLuke Pulverenti
2017-10-20improve httpclient resource disposalLuke Pulverenti
2016-10-29rework dlna projectLuke Pulverenti
2016-10-29rework dlna projectLuke Pulverenti