Django:BlockingIOError:[Errno 11]如果不进行阻止,则无法完成写入

2024-10-01 00:32:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我有django项目:

在中,有一个更新某些值的视图

在视图中,我有几个print命令

我尝试多次使用curl运行同一url

例如:

curl "127.0.0.1:8000/update?var=somevalue001"
curl "127.0.0.1:8000/update?var=somevalue002"
.
.
.
.
.
.
curl "127.0.0.1:8000/update?var=somevalue100"

但在运行40次之后,它开始给出错误

BlockingIOError: [Errno 11] write could not complete without blocking

如何避免


Tags: 项目django命令视图urlvar错误update