dendrite/setup/config
Neil Alexander d8b19c857f
HTTP connection keepalives (#2730)
Beforehand we disabled HTTP keepalives to prevent ambient system
resources from being used by excess idle connections. Now that we've
fixed some bugs in the federation API and device list updater, this
situation is now much better and we don't open so many remote
connections anyway.

Keepalives allow us to not have to handshake TLS so often (which is
quite expensive) and reusing an idle connection is much faster than
having to open a new one. This can help with response times when talking
to remote federated servers.

This PR also adds a new option to disable keepalives if needed:

```
  # Disable HTTP keepalives, which also prevents connection reuse. Dendrite will typically
  # keep HTTP connections open to remote hosts for 5 minutes as they can be reused much
  # more quickly than opening new connections each time. Disabling keepalives will close
  # HTTP connections immediately after a successful request but may result in more CPU and
  # memory being used on TLS handshakes for each new connection instead.
  disable_http_keepalives: false
```
2022-09-20 17:17:44 +01:00
..
config_appservice.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_clientapi.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_federationapi.go HTTP connection keepalives (#2730) 2022-09-20 17:17:44 +01:00
config_global.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_jetstream.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_keyserver.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_mediaapi.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_mscs.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_roomserver.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_syncapi.go Only verify if fulltext indexing is enabled 2022-09-09 17:19:29 +02:00
config_test.go Add .well-known/matrix/client to clientapi (#2551) 2022-07-25 10:39:57 +01:00
config_userapi.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00