uwsgi invalid request block size

后端 未结 7 1312
陌清茗
陌清茗 2020-12-12 11:09

I\'m running uwsgi in emperor mode

uwsgi --emperor /path/to/vassals/ --buffer-size=32768

and getting this error

invalid re         


        
7条回答
  •  旧时难觅i
    2020-12-12 11:53

    As pointed out in another comment from the docs:

    If you receive ‘21573’ as the request block size in your logs, it could mean you are using the HTTP protocol to speak with an instance speaking the uwsgi protocol. Don’t do this.

    If you are using Nginx, this will occur if you are have this configuration (or something similarly odd):

    proxy_pass http://unix:/path/to/socket.sock
    

    this is speaking HTTP to uWSGI (which makes it grumpy). Instead, use:

    uwsgi_pass unix:/path/to/socket.sock;
    

提交回复
热议问题