this post was submitted on 22 Sep 2023
14 points (100.0% liked)

/0

1525 readers
1 users here now

Meta community. Discuss about this lemmy instance or lemmy in general.

Service Uptime view

founded 1 year ago
MODERATORS
 

Just a quick update for people using pict-rs workers, to grab the latest release, and set the 2 new variables as they want them

SCAN_BYPASS_THRESHOLD (default 10): If this amount of images are waiting for scanning, pictrs-safety will start retuning "OK" for each new scan after that. This will prevent overloaded workers causing all further uploads from bouncing.

MISSING_WORKER_THRESHOLD (default 5): If this amount of seconds have passed since a scanning worker last checked in, start returning "OK" for each new scan after that. This will prevent a crashed worker from causing all images to bounce.

You can set either of these to 0 to turn off their functionality

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 10 months ago

Would this not leave an instance open to attack by uploading a large number of images in extremely quick succession? Meaning that an attacker could upload 1000 images within a second of each other, and some would get through assuming less than nine workers?

[โ€“] [email protected] 1 points 10 months ago

Theoretically yes. If you're concerned about it, one can turn that feature off