invalid request block size: 21573 (max 4096)...skip错误原因

妙音 posted @ 2014年3月19日 11:21 with tags uWSGI , 12966 阅读
有如下测试代码
  • test.py
#!/usr/bin/python

def application(env, start_response):
    start_response('200 OK', [('Content_Type', 'text/html')])
    return "Congraduation!!! uWSGI Testing OK!!!"
  • 以uwsgi方式启动
uwsgi -s :8080 --wsgi-file test.py -M -p 20
  • 访问
在浏览器输入http://0.0.0.0:8080/ 浏览器提示"未收到数据",后台出现错误提示
invalid request block size: 21573 (max 4096)...skip
  • 错误原因
usgi参数-s表示以socket方式提供通信端口,默认的协议是tcp.
通过浏览器访问使用的协议是http.
  • 正确方式
* 直接提供http服务
uwsgi --http :8080 --wsgi-file test.py -M -p 20
 
* ngix+uwsgi
通过nginx访问uwsgi,uwsgi则可使用以下方式启动
uwsgi -s :8080 --wsgi-file test.py -M -p 20
 
Avatar_small
Imamia Quran Academy 说:
2023年7月27日 05:58

Hi everyone, I really love your story. You have very useful information; I am from Imamia Quran Academy. Online Shia Quran Learning Center provides the best learning experience through its highly qualified teachers who are graduates in various fields of knowledge and make the lessons interesting. 

Shia Quran Madrasa is a convenient and reliable learning resource for people of all genders and ages making it the first choice of Shia Quran students.

Avatar_small
Imamia Quran Academy 说:
2023年8月04日 07:32

Excellent submit, very informative. I really appreciate this wonderful post that you have provided for us. I am from Imamia Quran Academy. Learning correct Arabic diacritics, punctuation, and pronunciation is now available with one click on Yassarnal Quran Qaida Online.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter