programming:python:py-prefork-server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
programming:python:py-prefork-server [2015/01/03 05:47] – [Instance Variables] jay | programming:python:py-prefork-server [2015/01/03 05:50] – [The __init__ Signature] jay | ||
---|---|---|---|
Line 123: | Line 123: | ||
=== The __init__ Signature === | === The __init__ Signature === | ||
<code python> | <code python> | ||
- | def __init__(self , childClass | + | def __init__(self , child_class |
- | | + | |
- | | + | |
+ | reuse_port=False): | ||
</ | </ | ||
Here is short description of each of those variables. | Here is short description of each of those variables. | ||
^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
- | | childClass | + | | child_class |
- | | maxServers | + | | max_cervers |
- | | minServers | + | | min_servers |
- | | minSpareServers | + | | min_spare_servers |
- | | maxSpareServers | + | | max_spare_servers |
- | | maxRequests | + | | max_requests |
- | | bindIp | + | | bind_ip |
| port | int | The port number to bind to | | | port | int | The port number to bind to | | ||
- | | proto | str | The protocol to use (tcp or udp) | | + | | protocol |
| listen | int | TCP listen queue backlog | | | listen | int | TCP listen queue backlog | | ||
+ | | reuse_port | bool | If set, and available, SO_REUSEPORT will be used to bind the socket in the child | | ||
For anyone who has set up an Apache prefork server (or used Perl's '' | For anyone who has set up an Apache prefork server (or used Perl's '' | ||
programming/python/py-prefork-server.txt · Last modified: 2023/11/10 20:06 by jay