Procházet zdrojové kódy

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 před 12 roky
rodič
revize
5e4f1c31fe
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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")