You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
I have a strange behaviour in Xamarin Forms UWP.
All work is done by a .NET Standard Library referenced by main Project.
The same SSE source works well in tests (.NET Core) but freezes when launched in Application.
I solved the problem changing
Stream = await response.Content.ReadAsStreamAsync(); using (var sr = new StreamReader(Stream)) {
to
Stream = await response.Content.ReadAsStreamAsync(); using (var sr = new StreamReader((Stream, Encoding.UTF8, false, 16348, true)) {
bufferSize must be greater than max chunk size (in my case it was > 2k).
I don't know why it works in tests...
There is also the flag "leaveOpen" that maybe should be set at true.
The text was updated successfully, but these errors were encountered: