Closed 00Asgaroth00 closed 2 years ago
http-websockets is in the http plugin, check you have built that in or you have to load it. While you are at it add assign it to true
Excellent, thank you, that got rid of the error message in strict mode. I was under the impression that websockets was compiled into the core, seems like it is a plugin with this distributions package build.
Updated vassal configuration:
[uwsgi]
strict = true
plugins = syslog, http, python36, python36_gevent
master = true
master-fifo = /run/uwsgi/%n_master.fifo
procname = "[uwsgi:worker: %n]"
procname-master = "[uwsgi:master: %n]"
enable-metrics = true
disable-logging = false
logger = syslog:uwsgi_%n
threaded-logger = true
single-interpreter = true
chmod-socket = 666
socket = /run/uwsgi/%n.sock
env = APP_ENV=development
chdir = /data/apps/development/%n
home = /data/apps/development/%n/v-env
mount = /%n=wsgi.py
manage-script-name = true
vacuum = true
thunder-lock = true
harakiri = 300
buffer-size = 65535
post-buffering = 1 # buffer all of the http body > 1 byte
lazy-apps = true
stats = /run/uwsgi/%n_metrics.sock
memory-report = true
no-orphans = true
pcre-jit = true
never-swap = true
http-websockets = true
gevent = 100
Now I'm faced with the original issue I was trying to debug, it appears that the websoocket app is constantly returning a 404 for all requests it is being sent :(
Is there a way I can see what is being passed over the uwsgi socket to the application? What I mean is, how can I verify that the connection is indeed being upgraded to enable websocket type connections? Nginx configuration is above.
I'll close this ticket as the original issue was resolved.
Whle attempting to debug a web socket issue, I attempted to run uWSGI in strict mode to ensure that my settings were being recognized by uWSGI. It appears that strict mode does not recognize the configuration option http-websockets.
Looking at the documentation, it appears that the http-websockets option was introduces as part of version 1.9 and is built as part of uWSGI by default (Reference here)
Is this a known issue, or am I doing something wrong here. Any assistance would be appreciated.
uWSGI emperor copnfiguration file:
Vassal websocket application I'm trying to start in strict mode:
nginx configuration