sanic
sanic copied to clipboard
Error: aborted in sanic 23.12
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When i call get method to get list data from server, with paging data (< 1000 object) sometime connection was lost and show Error: aborted but if i set paging > 1000 all request get Error: aborted. This error is gone when i downgrade to old version 23.6. i'm using haproxy for loading balance.
Code snippet
No response
Expected Behavior
No response
How do you run Sanic?
Sanic CLI
Operating System
Linux
Sanic Version
23.12
Additional context
No response
I have the same problem with Nginx reverse proxy. After day of checking commits from Sanic 23.12 changelog I found that this change #2831 is responsible for this problem. When I removed this method: https://github.com/sanic-org/sanic/blob/main/sanic/server/protocols/http_protocol.py#L231-L242 problem not occures any more.
Thanks for digging into this. Looking into it now .
I have the same problem with Nginx reverse proxy. After day of checking commits from Sanic 23.12 changelog I found that this change #2831 is responsible for this problem. When I removed this method: https://github.com/sanic-org/sanic/blob/main/sanic/server/protocols/http_protocol.py#L231-L242 problem not occures any more.
Great job, buddy! This issue has been troubling me for several days, very grateful for your answer!