Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Fix 500 error when we get an error handling a PDU #2553
Conversation
richvdh
assigned
erikjohnston
Oct 17, 2017
erikjohnston
approved these changes
Oct 18, 2017
Since we're already sending the error back in the response, its probably fine.
The failure mechanism is/was meant to be a way to asynchronously tell the sending server they're a crank, e.g. if we stuck incoming federation events into a queue rather than doing the full auth checks up front.
Oh, like we do during room joins (IIRC). I suppose we should wire that up sometime. |
richvdh commentedOct 17, 2017
•
edited
FederationServer doesn't have a send_failure (and nor does its subclass,
ReplicationLayer), so this was failing.
I'm not really sure what the idea behind send_failure is, given (a) we don't do
anything at the other end with it except log it, and (b) we also send back the
failure via the transaction response. I suspect there's a whole lot of dead
code around it, but for now I'm just removing the broken bit.