Skip to content

The Free Software Media System - Server Backend & API

Kestrel doesn't like sync IO operations

Bond_0092610f377c0a1
diff --git a/Emby.Dlna/Service/BaseControlHandler.cs b/Emby.Dlna/Service/BaseControlHandler.cs
index 067d5fa43f..79f03fed9f 100644
--- a/Emby.Dlna/Service/BaseControlHandler.cs
+++ b/Emby.Dlna/Service/BaseControlHandler.cs
@@ -63,7 +63,8 @@ namespace Emby.Dlna.Service
ValidationType = ValidationType.None,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
- IgnoreComments = true
+ IgnoreComments = true,
+ Async = true
};
using (var reader = XmlReader.Create(streamReader, readerSettings))
@@ -79,7 +80,8 @@ namespace Emby.Dlna.Service
var settings = new XmlWriterSettings
{
Encoding = Encoding.UTF8,
- CloseOutput = false
+ CloseOutput = false,
+ Async = true
};
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);