Changes between Initial Version and Version 1 of Ticket #33882, comment 23
- Timestamp:
- Jan 26, 2025, 7:27:48 AM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33882, comment 23
initial v1 1 I have create scripts to illustrate how the proposed solution fails under load. Django calls `close_old_connections` on every request, and I simulate it in a simpler environment so you don't have to bootstrap a whole Django. Also, it's easier to introduce load via scripts.1 I have created scripts to illustrate how the proposed solution fails under load. Django calls `close_old_connections` on every request, and I simulate it in a simpler environment so you don't have to bootstrap a whole Django. Also, it's easier to introduce load via scripts. 2 2 3 3 Download the `failure_*` attachments on this ticket. Run the server script, and then the client script. You will of course need Django and requests in your Python. You should see randomly occurring connection errors. Removing the `aatomic` decorator from the server script also removes these errors, so clearly it introduces a problem. By the way, I adapted the decorator from https://stackoverflow.com/questions/74575922/how-to-use-transaction-with-async-functions-in-django.