我使用post请求将大量数据从用户输入(textarea)加载到数据库(18k lines),并得到502 Bad Gateway错误。
当我打印sudo nano /var/log/nginx/error.log时,我得到了这样的信息:
2018/09/06 10:21:04 [alert] 19688#19688: *3 open socket #22 left in connection 4
2018/09/06 10:21:04 [alert] 19688#19688: aborting
2018/09/06 11:04:32 [error] 20076#20076: *14 upstream prematurely closed connection while reading response header from upstream, client: 95.1$这只在我的生产服务器上(nginx + gunicorn + postgres),在我的dev服务器上它工作得很好。
我该怎么办?
我也有
发布于 2018-09-06 12:02:37
增加超时时间有助于解决这个问题。
https://stackoverflow.com/questions/52202975
复制相似问题