fstream/modules/settings.py

28 lines
1.3 KiB
Python
Raw Normal View History

2022-05-29 12:31:07 +00:00
global servers
servers = [
2024-01-17 22:01:27 +00:00
# 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)
# )
# )
2022-05-29 12:31:07 +00:00
]
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
2024-01-17 22:01:27 +00:00
clientDebug = False # Print how many clients and threads there are