码迷,mamicode.com
首页 > 其他好文 > 详细

dgango 报错: Timeout when reading response headers from daemon process

时间:2019-01-21 16:11:41      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:roc   action   数据   问题   ade   接收   img   ack   image   

问题:

image = np.asarray(bytearray(f.read()), dtype="uint8")
cv2_img = cv2.imdecode(image, cv2.IMREAD_COLOR)

虽然image中已经接收到数据,代码却在decode函数处卡死。
解决:
在mysite.conf中添加
WSGIApplicationGroup %{GLOBAL}

参考:
https://stackoverflow.com/questions/40413171/django-webfaction-timeout-when-reading-response-headers-from-daemon-process

dgango 报错: Timeout when reading response headers from daemon process

标签:roc   action   数据   问题   ade   接收   img   ack   image   

原文地址:https://www.cnblogs.com/rabitvision/p/10298370.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!