element-hq / element-hq/element-ios

The application stuck on first run. Timeout on matrix-client.matrix.org.

Open
#7,908 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

The application stuck on first run.
Analysis showed that it freezes when connecting to the site **matrix-client.matrix.org**.

```
$ curl -v --trace-time --connect-timeout 20 https://matrix-client.matrix.org
21:42:41.782097 * Host matrix-client.matrix.org:443 was resolved.
21:42:41.782311 * IPv6: 2606:4700:10::ac43:23f, 2606:4700:10::6814:4cfc, 2606:4700:10::6814:4dfc
21:42:41.782391 * IPv4: 172.67.2.63, 104.20.77.252, 104.20.76.252
21:42:41.782526 * Trying 172.67.2.63:443...
21:42:41.907364 * Connected to matrix-client.matrix.org (172.67.2.63) port 443
21:42:41.914320 * ALPN: curl offers h2,http/1.1
21:42:41.914821 * TLSv1.3 (OUT), TLS handshake, Client hello (1):
21:42:41.972764 * CAfile: /etc/ssl/certs/ca-certificates.crt
21:42:41.972782 * CApath: /etc/ssl/certs
21:43:01.722457 * SSL connection timeout
21:43:01.722582 * Closing connection
curl: (28) SSL connection timeout
```

There is no option to disable this action.
On the desktop version, you can create a config.json file and the problem is solved.

```json
"update_base_url": "",
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
```

This feature is not available on mobile versions.

Is it possible to add some parameter at startup to ignore connection to matrix-client.matrix.org ?
Or set a short connection timeout like **--connect-timeout** in **curl** ?

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.