mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 00:51:32 +00:00
Add command to kill all children processes spawned by cmdthread
Additionally, a maximum send queue length was added to avoid something like `cat /dev/urandom` from being a massive memory hog and causing OOM. Because output is read from the process and added to the message queue in real time, this could lead to infinite memory usage without it.
This commit is contained in:
parent
1a5e4e062c
commit
ac6560e680
2 changed files with 25 additions and 3 deletions
|
|
@ -15,5 +15,9 @@ server = {
|
|||
bot = {
|
||||
"command_prefix": "$!",
|
||||
"bot_prefix": "$$",
|
||||
"opper_nicknames": ["nicknamehere"]
|
||||
"opper_nicknames": ["nicknamehere"],
|
||||
|
||||
# 512 messages * 512 bytes maximum per message = 262144 bytes max message queue size
|
||||
# Adjust for RAM needs to avoid cat /dev/urandom from causing OOM
|
||||
"message_queue_max_size": 512
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue