问题:
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
原文地址:https://www.cnblogs.com/rabitvision/p/10298370.html
时间: 2024-08-28 12:08:02