I'm experiencing issues with AndroidClientHandler. Have added try/catch on each WebClient task but sometimes it makes app crash with exception:
JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) Java.IO.IOException: Read error: ssl=0x79aa9b2e08: I/O error during system call, Connection reset by peer
After some research, I found this thread [AndroidClientHandler] Observe cancellation requests more #4589, and what I understand reading this is that I need to edit src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs changing the highlighted lines as HERE . I'm able to find AndroidClientHandler.cs but it seems to be readonly and it's really different. Do I really need to edit that file? Is there a higher level workaround for this issue?
https://stackoverflow.com/questions/67030186/issue-with-androidclienthandler-is-it-possible-to-edit-src-mono-android-xamarin April 10, 2021 at 10:07AM
没有评论:
发表评论