MauiHybridWebView icon indicating copy to clipboard operation
MauiHybridWebView copied to clipboard

Fix possible hang in Proxy code for Android

Open Eilon opened this issue 1 year ago • 1 comments
trafficstars

In #43 a new proxy feature was introduced. Some of the code does sync-over-async, and calls .Wait() to block the async call. Unfortunately on iOS/MacCat this seems to hang 100% of the time. On Android there is similar code but doesn't seem to hang (but presumably it could).

We need to investigate a pattern to avoid the calls to .Wait() by finding a proper way to do async on iOS/MacCat/Android for these calls.

Example problematic call: https://github.com/Eilon/MauiHybridWebView/pull/43/files#diff-7580ae2f86a455f984e4ba3b09acf21b36bd79c70efa55d467f2df93a6c6f136R54

Eilon avatar Mar 11 '24 18:03 Eilon

The PR has fixes for iOS and MacCat now! But Android still calls .Wait(). Though no hang is currently known, it's something we need to address eventually.

Eilon avatar Mar 11 '24 19:03 Eilon