uWSGI“超时等待标头”错误

时间:2011-08-24 05:33:52

标签: python webserver wsgi pyramid uwsgi

我在Ubuntu 10.04(32位)下使用uwsgi-0.9.8.4,这是我的Pyramid应用程序中的uwsgi部分(适用于paster).ini文件 -

[uwsgi]
socket = 127.0.0.1:6543
master = true
processes = 1
pythonpath = /home/jerry/virtualenv/lib/python2.6/site-packages/*.egg
pythonpath = /home/jerry/myapp

uwsgi运行并绑定到端口6543 -

$ uwsgi --ini-paste development.ini -b 32768
...
2011-08-23 16:43:11,128 INFO sqlalchemy.engine.base.Engine {}
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x9472fa8 pid: 14161 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 14161)
spawned uWSGI worker 1 (pid: 14170, cores: 1)
timeout waiting for header. skip request.
timeout waiting for header. skip request.

但是,浏览器中的http://localhost:6543/请求只是暂停,而uWSGI很少报告什么都没有收到。

可能有什么问题,有没有办法调试这种情况?

非常感谢任何指针。

1 个答案:

答案 0 :(得分:4)

默认情况下,uWSGI会说uwsgi(全小写)协议,而不是http协议。因此您无法通过浏览器连接到它。添加--protocol = http让它说出http(显然更慢)