[英]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:如果客户端关闭它与Flask服务器建立的连接,我会在终端中收到以下错误:
[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.似乎当flask尝试在关闭的流中写入时,它会遇到错误,因此会抱怨。
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.
我使用 Windows 和 Linux 操作系统。
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.
解决该问题的方法是以管理员身份运行该进程和/或修改系统策略以允许在受限端口上进行连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.