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

Merged
merged 1 commit into from Oct 18, 2017

Conversation

Projects
None yet
2 participants
Member

richvdh commented Oct 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.

Fix 500 error when we get an error handling a PDU
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.

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.

Member

richvdh commented Oct 18, 2017

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 richvdh merged commit 69994c3 into develop Oct 18, 2017

6 of 8 checks passed

Sytest Postgres (Commit) Build #3654 origin/rav/fix_500_on_event_send failed in 4 min 35 sec
Details
Sytest Dendron (Merged PR) Build finished.
Details
Sytest Dendron (Commit) Build #2819 origin/rav/fix_500_on_event_send succeeded in 5 min 10 sec
Details
Sytest Postgres (Merged PR) Build finished.
Details
Sytest SQLite (Commit) Build #3756 origin/rav/fix_500_on_event_send succeeded in 1 min 49 sec
Details
Sytest SQLite (Merged PR) Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@richvdh richvdh deleted the rav/fix_500_on_event_send branch Oct 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment