Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch uploads of large files behave strangely. #28302

Open
YamatoRyou opened this issue Oct 25, 2024 · 0 comments
Open

Batch uploads of large files behave strangely. #28302

YamatoRyou opened this issue Oct 25, 2024 · 0 comments
Labels
A-File-Upload Attachments and file uploads O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@YamatoRyou
Copy link

Steps to reproduce

  1. Prepare several files with sizes between 1.4 and 1.5 GB (based on the media maximum size of 1536 MB configured in the Synapse configuration file homeserver.yaml);
  2. Drag these files in batches to the Web UI, and select "Upload All".

Outcome

What did you expect?

n/a

What happened instead?

The upload speed becomes very slow, only about 150 Mbps in my case, and most of the selected files fail to upload. But the same files, manually uploaded one by one, behave normally. Under normal circumstances, the average upload speed of a large file is 950 Mbps in my case.

I guess the following events may have happened internally:

  1. The application simultaneously initiated the same number of requests as the files to be uploaded;
  2. These requests competed for bandwidth, and some progressed very slowly or even without any data passing, so that the transfer could not be resumed within 30 seconds, so these files were judged as failed uploads;
  3. The remaining ones obtained enough bandwidth to continue to transfer until the upload was completed.

My suggestion for improvement is to let multiple files enter a queue when uploading, Upload one by one.
This problem can be reproduced in both the browser and the desktop client.

Operating system

x64 Windows 11 (10.0.22631)

Browser information

Cent Browser (Chromium 118)

URL for webapp

Element Web 1.11.82

Application version

Element Desktop 1.11.82 (x64)

Homeserver

Synapse 1.117.0

Will you send logs?

No

@dosubot dosubot bot added A-File-Upload Attachments and file uploads O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-File-Upload Attachments and file uploads O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

1 participant