mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
increase spamassassin timeout to 300s
This commit is contained in:
parent
38bf117f29
commit
50683be4f8
1 changed files with 2 additions and 2 deletions
|
@ -1220,9 +1220,9 @@ async def get_spam_score(message: Message) -> float:
|
|||
sa_input += b"\n"
|
||||
|
||||
try:
|
||||
# wait for at max 10s
|
||||
# wait for at max 300s which is the default spamd timeout-child
|
||||
response = await asyncio.wait_for(
|
||||
aiospamc.check(sa_input, host=SPAMASSASSIN_HOST), timeout=10
|
||||
aiospamc.check(sa_input, host=SPAMASSASSIN_HOST), timeout=300
|
||||
)
|
||||
return response.headers["Spam"].score
|
||||
except asyncio.TimeoutError:
|
||||
|
|
Loading…
Reference in a new issue