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

Handle transactions sent during UnverifiableEvents test #59

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

anoadragon453
Copy link
Member

Once again Synapse likes to send presence when it joins a room. I wonder if we should perhaps make federation.HandleTransactionRequests(nil, nil) the default for new servers, with the ability to override it if desired?

The only thing I worry about there is that you may want a test that 404's on transactions. Maybe at that point we could just extend HandleTransactionRequests to return custom responses.

Once again Synapse likes to send presence when it joins a room. I wonder if we
should perhaps make federation.HandleTransactionRequests default for new
servers, with the ability to override it if desired?

The only thing I worry about there is that you may want a test that 404's on
transactions.  Maybe at that point we could just extend
HandleTransactionRequests to return custom responses.
@kegsay
Copy link
Member

kegsay commented Jan 6, 2021

The entire point of Handle... functions is to be explicit about what the server is automatically handling so you aren't surprised by the behaviour of Complements federation server. I don't agree that automatically handling with optional override is desirable here.

@kegsay kegsay merged commit ee3715d into master Jan 6, 2021
@anoadragon453 anoadragon453 deleted the anoa/unverifiable_events_test_handle_transactions branch January 6, 2021 16:08
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.

None yet

2 participants