Ahmad Siavashi
Ahmad Siavashi

Reputation: 999

Aborted connection error in flask

If the client closes an established connection that it has made with the flask server, I get the following error in the terminal:

[Errno 10053] An established connection was aborted by the software in your host machine

It seems when flask tries to write in the closed stream, it faces errors and hence will complain.
It seemed like a warning or so as the application does not quit after printing the error, but the problem is that my server will stop serving other requests despite being alive in the system.

I have read similar questions but they did not help. How can I prevent this issue? I use both Windows and Linux operating systems.

Upvotes: 2

Views: 2042

Answers (1)

sytech
sytech

Reputation: 40861

The cause of this problem is, as we previously discussed, insufficient permissions to perform the network operation. The remedy to the problem was to run the process as an administrator and/or to modify the system policy to allow connections on the restricted port.

Upvotes: 2

Related Questions