qaul / qaul.net

Internet Independent Wireless Mesh Communication App
https://qaul.net
GNU Affero General Public License v3.0
496 stars 63 forks source link

Create worker thread for file message slicing & encryption #546

Open MathJud opened 1 year ago

MathJud commented 1 year ago

When a larger file is sent from libqaul, the file needs to be sliced into the maximally allowed messages size, and each message needs to be encrypted. For larger files this can take quite a while.

To speed up the process and not block libqaul for too long, move the file slicing and encryption into an async worker thread.

The thread should be created here:

https://github.com/qaul/qaul.net/blob/899edace6dbd3e4e251f27b5498103a622b8afae/rust/libqaul/src/services/chat/file.rs#L520

MathJud commented 1 year ago

This issue is worked on in PR #550