Skip to content

Load and register requests_unixsocket if it is available#65

Open
berolinux wants to merge 1 commit intogrommunio:masterfrom
berolinux:features/antispam-unixsocket
Open

Load and register requests_unixsocket if it is available#65
berolinux wants to merge 1 commit intogrommunio:masterfrom
berolinux:features/antispam-unixsocket

Conversation

@berolinux
Copy link

This allows talking to rspamd (and probably other backends) over a UNIX socket instead of requiring a TCP socket, e.g.

options:
antispamUrl: "http+unix://%2Frun%2Frspamd%2Fcontroller.sock"

The change in endpoints/system/misc.py is needed because requests_unixsocket (at least the current version, 0.4.1) implements only the version of "get" with one positional argument.

This allows talking to rspamd (and probably other backends) over a UNIX
socket instead of requiring a TCP socket, e.g.

options:
    antispamUrl: "http+unix://%2Frun%2Frspamd%2Fcontroller.sock"

The change in endpoints/system/misc.py is needed because
requests_unixsocket (at least the current version, 0.4.1)
implements only the version of "get" with one positional argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants