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

Limit concurrent HTTP requests #1898

Merged
merged 18 commits into from
Jul 10, 2024
Merged

Limit concurrent HTTP requests #1898

merged 18 commits into from
Jul 10, 2024

Conversation

gnunicorn
Copy link
Contributor

  1. Upgrades to latest matrix-rust-sdk
  2. link to the upgraded matrix-rust-sdk fork that has support for limiting current http requests
  3. set the limits to 100 on desktop, 50 on android and 20 on iOS

Attempt to fix that #1788 errors.

@gnunicorn gnunicorn requested a review from bitfriend June 28, 2024 17:02
Copy link
Contributor

Hey there 👋,
and thanks for the contribution. But it seems like you forgot to

  • 📰 Add a markdown file in .changes/ explaining what changed

@bitfriend
Copy link
Contributor

bitfriend commented Jul 2, 2024

App crashes when clicking of chat list under reqwest limitation.
This is last part of log.
Full log is too large to paste here.

[2024-07-02][22:49:28.105797][acter::api::receipt][INFO] receipt: ReceiptEventContent({"$xHDPrULegcKltaziYo4HrjSHXorte888VfqEFkBOYQc": {"m.read": {"@s7evink:matrix.org": Receipt { ts: Some(2024-07-02T14:49:24.890), thread: Main }}}})
[2024-07-02][22:49:28.106074][acter::api::receipt][INFO] receipt iter: "$xHDPrULegcKltaziYo4HrjSHXorte888VfqEFkBOYQc"
[2024-07-02][22:49:28.106226][acter::api::receipt][INFO] user read receipt: Receipt { ts: Some(2024-07-02T14:49:24.890), thread: Main }
[2024-07-02][22:49:28.113763][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:29.214493][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:29.215840][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:30.118503][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:30.119436][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:32.330404][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:32.331365][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:33.118214][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:33.118797][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:37.455075][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:37.455488][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:41.649542][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:41.649968][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:42.710596][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:42.711038][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:46.143401][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:46.143779][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:49.517595][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:49.518006][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:52.710906][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:52.711755][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:55.352692][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:55.352871][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:57.511837][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:57.512968][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:49:58.477226][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:49:58.477942][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:00.363013][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:00.363408][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:01.327462][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:01.327996][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:03.479865][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:03.480340][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:04.878801][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:04.879177][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:05.963603][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:05.963386][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:07.912521][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:07.912986][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:12.737804][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:12.738161][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:19.854411][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:19.854807][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:22.203709][matrix_sdk_crypto::backups][WARN] Trying to backup room keys but no backup key was found
[2024-07-02][22:50:22.204060][acter::api::client::sync][INFO] received sync callback
[2024-07-02][22:50:22.982421][a3::common::room][ERROR] room not found Room not found null 

@gnunicorn gnunicorn added build-demo Include demo builds in this PR and removed build-demo Include demo builds in this PR labels Jul 4, 2024
@gnunicorn
Copy link
Contributor Author

@bitfriend pretty sure this doesn't come from this PR ... can you try again since I merged main (that contained the fix)...

@bitfriend
Copy link
Contributor

@bitfriend pretty sure this doesn't come from this PR ... can you try again since I merged main (that contained the fix)...

But main is working fine now.
It doesn't show any error when navigating to chat list page.

@gnunicorn
Copy link
Contributor Author

@bitfriend I pushed an update with a fix. does this still happen to you with it?

Copy link
Contributor

@bitfriend bitfriend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limit of concurrent requests was great idea.
Nice work.

@bitfriend
Copy link
Contributor

On navigation to chat list page, app crash seems to disappear.
Great job.

@gnunicorn gnunicorn merged commit a4dc750 into main Jul 10, 2024
27 checks passed
@gnunicorn gnunicorn deleted the ben-limit-http-requests branch July 10, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants