You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Synapse does not cache it's version string on startup, causing requests to that endpoint to cause 4 git processes to be spawned, even if the code is not deployed via git.
While we're at it, we probably don't need to do that caching at each of the places get_version_string is called - perhaps that function saves the response forever (during the lifetime of the python process), this will save us checking git multiple times on startup - we just need to try it that 4 times and that's it.
We also tack on the "Synapse/" in lots of the places that we do this as well, maybe just do that in one place too.
Version information
Version: develop
Install method:
git clone
Platform:
linux
The text was updated successfully, but these errors were encountered:
Description
https://github.com/matrix-org/synapse/blob/develop/synapse/federation/transport/server.py#L773
Synapse does not cache it's version string on startup, causing requests to that endpoint to cause 4 git processes to be spawned, even if the code is not deployed via git.
https://github.com/matrix-org/synapse/blob/develop/synapse/util/versionstring.py
While we're at it, we probably don't need to do that caching at each of the places get_version_string is called - perhaps that function saves the response forever (during the lifetime of the python process), this will save us checking git multiple times on startup - we just need to try it that 4 times and that's it.
We also tack on the "Synapse/" in lots of the places that we do this as well, maybe just do that in one place too.
Version information
Version: develop
Install method:
git clone
Platform:
linux
The text was updated successfully, but these errors were encountered: