[browser][mt] Thread affinity for HTTP and WS#85244
[browser][mt] Thread affinity for HTTP and WS#85244pavelsavara wants to merge 2 commits intodotnet:mainfrom
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsKeep HTTP and WS on the same thread where it was initiated in the browser.
|
|
Do these |
Good point. It spreads to all corners actually. Even our unit tests have Is there better way ? |
|
@pavelsavara I tried this in #85109 and it's enough to get the Blazor Weather Report page to fetch its data correctly. But we probably need to solve this in another way. Changing all the We will probably need to do something to queue the JS invoke on the correct thread under the covers. |
Keep HTTP and WS on the same thread where it was initiated in the browser.
Because the JavaScript objects and the network sessions are bound to particular web worker.
Luckily the
OperatingSystem.IsBrowser()is a constant and so it should be eliminated by IL linker or JIT.