An external website that allows moderators and administrators to view past Modmail threads. It provides a convenient way for moderators to track previous conversations and helps them to maintain a record of user interactions.
GNU General Public License v3.0
87
stars
1.28k
forks
source link
Onerror handler for lazy loading images repeats with no delay or cap #20
Doesn't have a retry limit or retry cap, so despite the network requests failing with "ERR_NOT_REACHABLE" It continued to retry for the default avatar with millisecond delay times, counting up requests in the thousands/second, multiplied by the number of avatars present within the log.
You can reproduce the issue by blocking access to cdn.discordapp.com and loading a modmail log with the browser network panel open.
While experiencing some local network issues I discovered a potential issue with the lazy-loading feature for avatars within modmail logs.
Doesn't have a retry limit or retry cap, so despite the network requests failing with "ERR_NOT_REACHABLE" It continued to retry for the default avatar with millisecond delay times, counting up requests in the thousands/second, multiplied by the number of avatars present within the log.
You can reproduce the issue by blocking access to cdn.discordapp.com and loading a modmail log with the browser network panel open.
Would reduce it to a single attempt to load the default avatar before failing and leaving the space with a broken image.