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
#2,186 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.