Added http.reuse_port option to README
@@ -630,6 +630,7 @@ A ``tomodachi.Service`` extended service class may specify a class attribute nam
--------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------
``http.port`` TCP port (integer value) to listen for incoming connections. ``9700``
``http.host`` Network interface to bind TCP server to. ``"0.0.0.0"`` will bind to all IPv4 interfaces. ``None`` or ``""`` will assume all network interfaces. ``"0.0.0.0"``
+``http.reuse_port`` If set to ``True`` (which is also the default value on Linux) the HTTP server will bind to the port using the socket option ``SO_REUSEPORT``. This will allow several processes to bind to the same port, which could be useful when running services via a process manager such as ``supervisord`` or when it's desired to run several processes of a service to utilize additional CPU cores, etc. Note that the ``reuse_port`` option cannot be used on non-Linux platforms. ``True`` on Linux, otherwise ``False``
``http.keepalive_timeout`` Enables connections to use keep-alive if set to an integer value over ``0``. Number of seconds to keep idle incoming connections open. ``0``
``http.max_keepalive_requests`` An optional number (int) of requests which is allowed for a keep-alive connection. After the specified number of requests has been done, the connection will be closed. An option value of ``0`` or ``None`` (default) will allow any number of requests over an open keep-alive connection. ``None``
``http.max_keepalive_time`` An optional maximum time in seconds (int) for which keep-alive connections are kept open. If a keep-alive connection has been kept open for more than ``http.max_keepalive_time`` seconds, the following request will be closed upon returning a response. The feature is not used by default and won't be used if the value is ``0`` or ``None``. A keep-alive connection may otherwise be open unless inactive for more than the keep-alive timeout. ``None``
