简体   繁体   English

烧瓶中的中止连接错误

[英]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.

相关问题 Python会话10054连接异常终止错误 - Python Session 10054 Connection Aborted Error 获取连接异常终止,Python中的远程断开连接错误 - Getting connection aborted, remote disconnected error in python AdbClient错误:[Errno 10053]建立的连接被中止 - AdbClient error: [Errno 10053] An established connection was aborted 使用请求模块抓取时出现连接中止错误 - Connection Aborted Error when scraping with requests module Python错误:连接异常终止-网络断开 - Python error: Connection aborted - Network is down 连接中止。,Django 中的错误(104,“对等连接重置”) - Connection aborted., error(104, 'Connection reset by peer') in Django Flask 服务器上的“连接已重置”错误 - “Connection was reset” error on flask server Python-请求lib-错误(“连接已中止。”,BadStatusLine(“''”,)) - Python - requests lib - error ('Connection aborted.', BadStatusLine(“''”,)) msg:ConnectionError(ProtocolError('Connection aborted。',error(2,'No such file or directory')),) - msg: ConnectionError(ProtocolError('Connection aborted.', error(2, 'No such file or directory')),) 如何修复“连接中止”。 使用 BeautifulSoup 在 Python 中出错 - How to fix 'Connection aborted.' error in Python with BeautifulSoup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM