Przeglądaj źródła

Increase uWSGI socket listen backlog to eliminate socket timeout errors

wrk was consistently reporting socket timeout errors. Increasing the socket
listen backlog solved this. The value of 5000 was used to match the setting
of somaxconn in benchmarker.py.
Malcolm Evershed 12 lat temu
rodzic
commit
5e4f1c31fe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      uwsgi/setup.py

+ 1 - 1
uwsgi/setup.py

@@ -10,7 +10,7 @@ PROCS = multiprocessing.cpu_count()
 
 def start(args):
     subprocess.Popen(
-        uwsgi + ' --master -L --gevent 1000 --http :8080 --http-keepalive ' +
+        uwsgi + ' --master -L -l 5000 --gevent 1000 --http :8080 --http-keepalive ' +
         '-p ' + str(PROCS) + ' -w hello --add-header "Connection: keep-alive" ' +
         ' --pidfile /tmp/uwsgi.pid',
         shell=True, cwd="uwsgi")