28 lines
1.3 KiB
Python
28 lines
1.3 KiB
Python
global servers
|
|
servers = [
|
|
# Host Port SSL Certificate Socket Options
|
|
("127.0.0.1", 61920, False, (
|
|
(socket.SOL_SOCKET,socket.SO_REUSEADDR,1),
|
|
(socket.IPPROTO_TCP,socket.TCP_NODELAY,1),
|
|
(socket.IPPROTO_TCP,socket.IP_TOS,0x10) # IPTOS_LOWDELAY
|
|
)
|
|
),
|
|
# ("127.0.0.1", 443, "localhost.pem", (
|
|
# (socket.SOL_SOCKET,socket.SO_REUSEADDR,1),
|
|
# (socket.IPPROTO_TCP,socket.TCP_NODELAY,1),
|
|
# (socket.IPPROTO_TCP,socket.IP_TOS,0x10)
|
|
# )
|
|
# )
|
|
]
|
|
|
|
global timeout
|
|
timeout = 15 # Seconds until the connection should be timed out
|
|
global maxConnections
|
|
maxConnections = 5 # Maximum connections per IP, needs connlimit.py to be activated
|
|
global enableOutThread
|
|
enableOutThread = False # Use a seperate thread for data output?
|
|
global printExceptions
|
|
printExceptions = False # Print exceptions as they happen, enable if you're developing
|
|
global clientDebug
|
|
clientDebug = False # Print how many clients and threads there are
|