2011-08-24 79 views
0

我使用Ubuntu下10.04(32位)uwsgi-0.9.8.4我,这里是我的金字塔应用uwsgi部分(与贴膜正常工作).ini文件 -uWSGI“超时等待头”错误

[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不常报告接受什么。

什么可能是错的,有什么办法可以调试这种情况?

任何指针将不胜感激。

回答

4

默认情况下,uWSGI表示uwsgi(全部为小写)协议,而不是http。所以你不能通过浏览器连接到它。添加 - 协议= http让它说话http(明显慢)

+0

非常感谢!用“--protocol *** UNDOCUMENTED OPTION ***”我永远无法弄清楚自己。 – Jerry