Skip to content

Polling the homeserver, the app always times out after 60 seconds #2169

Closed
@mcg-matrix

Description

@mcg-matrix

I am using Element installed from F-Droid. Version 1.0.7 brought along #2080. Setting "Sync request timeout" does make the app set the "&timeout" parameter in a background-polling request for "/_matrix/client/r0/sync" as expected. 👍

"Sync request timeout" apparently can be set to any integer value. (I like that. Given the option (and support by the homeserver for very-long-living requests), I'd probably set it to "infinite", so I'd have a permanent TCP connection to the homeserver.)

However, no matter the value of "Sync request timeout", the app gives up waiting for an answer after 60 seconds. It then closes the TCP connection, which is a very expensive operation, because the connection (and probably the SSL session, too) can't be reused for further requests.

Would it be possible to increase the app's internal timeout to something like "Sync request timeout + 10 seconds"?

Metadata

Metadata

Assignees

Labels

A-Store-F-DroidT-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions