【问题标题】:uWSGI "timeout waiting for header" ErroruWSGI“等待标头超时”错误
【发布时间】:2011-11-02 12:11:15
【问题描述】:

我在 Ubuntu 10.04(32 位)下使用 uwsgi-0.9.8.4,这是我的 Pyramid 应用程序中的 uwsgi 部分(可以很好地与贴纸一起使用).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 很少报告没有收到任何内容。

可能出了什么问题,有什么方法可以调试这种情况?

任何指针将不胜感激。

【问题讨论】:

    标签: python webserver wsgi pyramid uwsgi


    【解决方案1】:

    默认情况下,uWSGI 使用 uwsgi(全小写)协议,而不是 http 协议。所以你不能通过浏览器连接到它。添加 --protocol=http 让它说 http (显然更慢)

    【讨论】:

    • 非常感谢!使用“--protocol *** UNDOCUMENTED OPTION ***”我永远无法自己弄清楚。
    猜你喜欢
    • 2019-09-20
    • 1970-01-01
    • 1970-01-01
    • 2020-09-23
    • 1970-01-01
    • 1970-01-01
    • 2020-12-19
    • 2017-12-26
    • 2023-04-03
    相关资源
    最近更新 更多