Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnixSocketTransport does not work with socket.STREAM unless specified #37

Open
aliceh75 opened this issue Jan 10, 2020 · 0 comments
Open

Comments

@aliceh75
Copy link

When using UnixSocketTransport without specifying the socket type, it defaults to socket.SOCK_DGRAM and never attempts socket.SOCK_STREAM.

This is where the default value is set: https://github.com/jobec/rfc5424-logging-handler/blob/master/rfc5424logging/handler.py#L93

And this is the code that means that if a default is provided, it won't try the alternative even if the default failed: https://github.com/jobec/rfc5424-logging-handler/blob/master/rfc5424logging/transport.py#L152

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

No branches or pull requests

1 participant