uwsgi 无效请求块大小 [英] uwsgi invalid request block size

查看:35
本文介绍了uwsgi 无效请求块大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在皇帝模式下运行 uwsgi

I'm running uwsgi in emperor mode

uwsgi --emperor /path/to/vassals/ --buffer-size=32768

并收到此错误

invalid request block size: 21327 (max 4096)...skip

怎么办??我也试过 -b 32768

What to do?? I also tried -b 32768

推荐答案

我在学习一些教程时也遇到了同样的问题.问题是我设置了选项 socket = 0.0.0.0:8000 而不是 http = 0.0.0.0:8000.socket 选项旨在与某些第三方路由器(例如 nginx)一起使用,而当设置 http 选项时,uwsgi 可以接受传入的 HTTP 请求并自行路由它们.

I aslo ran into same issue while following some tutorial. The problem was that I set the option socket = 0.0.0.0:8000 instead of http = 0.0.0.0:8000. socket option intended to be used with some third-party router (nginx for instance), while when http option is set uwsgi can accept incoming HTTP requests and route them by itself.

这篇关于uwsgi 无效请求块大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆