2011-08-24 80 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