tauri-apps / tauri-apps/plugins-workspace
[bug] plugin_websocket: When WebSocket accepts a large number of concurrent messages, multiple clone windows may cause crashes
Open
plugin: websocket
type: bug
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
The code in question is here:
https://github.com/tauri-apps/tauri-plugin-websocket/blob/dev/src/lib.rs#L96
```rs
read.for_each(move |message| {
let window_ = window.clone();
// ...
})
```
This problem is inevitable in my local testing: once there are a large number of ws messages, the application will crash. The problem currently located is caused by this.
Contributor guide
Assessment
This issue has not been assessed yet.