element-hq / element-hq/synapse

Allow passing in listen-mode sockets (SYN-402)

Open
#1,329 0 comments 0 reactions 0 assignees View on GitHub
P5 T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 6h
Merged PRs (30d)
46

Description

This issue has been migrated from [#1329](https://github.com/matrix-org/synapse/issues/1329).

---

There's a number of situations in which it would be helpful if synapse could use existing listen-mode TCP sockets that are passed in as pre-opened FDs, instead of having it create them:

* sytest
* systemd
* any security-sensitive setup where synapse should be on port 80 or 443, and yet not run as root

By taking some commandline arguments with "fd" instead of "port", this could easily be managed; e.g.

python -m synapse.app.homeserver --listen-fd 3

(Imported from https://matrix.org/jira/browse/SYN-402)

(Reported by @leonerd)

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.