Django ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

I have checked in a fix for this in Python: https://github.com/python/cpython/pull/9713

It will be available in the next version of Python 3.7 and later.


I was making a web application and was facing the same issue in windows 10, python 3.7.6, django 3.0.8. I tried a lot of stuff and i finally found a fix.

I was using a form which called a js function onsubmit which in turn sent a REST call which was getting canceled with the '[WinError 10053] An established connection was aborted by the software in your host machine' error in command prompt.

I added the parameter method='post' and used jQuery.ajax in the js function and i added the event.preventDefault() as well in the function as well as some success and fail callbacks. I don't understand why but now i am not getting the error.

Hope this help anyone using js along with HTML forms until a the issue is root-caused and fixed.

This Github bug is tracking the issue


ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

If you are working with the videos this happens when you make another request while the video is uploading to the database. I would suggest you to use preload='none' in video tag or block the new requests while video is uploading.