-
- Downloads
Refactor matrixfederationclient to fix logging (#3906)
We want to wait until we have read the response body before we log the request as complete, otherwise a confusing thing happens where the request appears to have completed, but we later fail it. To do this, we factor the salient details of a request out to a separate object, which can then keep track of the txn_id, so that it can be logged.
Showing
- changelog.d/3906.misc 1 addition, 0 deletionschangelog.d/3906.misc
- synapse/http/matrixfederationclient.py 236 additions, 149 deletionssynapse/http/matrixfederationclient.py
- tests/http/test_fedclient.py 38 additions, 5 deletionstests/http/test_fedclient.py
- tests/replication/slave/storage/_base.py 3 additions, 32 deletionstests/replication/slave/storage/_base.py
- tests/server.py 81 additions, 0 deletionstests/server.py
Loading
Please register or sign in to comment