DisnakeDev / disnake

An API wrapper for Discord written in Python.
https://docs.disnake.dev
MIT License
721 stars 137 forks source link

Guild chunk timeout with large number of members in single shard #683

Open shiftinv opened 2 years ago

shiftinv commented 2 years ago

Summary

The timeout for chunking guilds is len(guilds) * 70, which can be too low if the guilds has a high member count and/or the ws is bottlenecked due to other events.

Expected Results

No warning should be shown, and the timeout should account for the size of the guilds that are currently being waited for.

Actual Results

WARNING [disnake.state._delay_ready:2015] Shard ID 0 failed to wait for chunks from a sub-bucket with length 2

Intents

members + presences

Checklist

Additional Context

https://canary.discord.com/channels/808030843078836254/883342278280745030/1003725784340508732

onerandomusername commented 2 years ago

@shiftinv do you plan on fixing this?

onerandomusername commented 2 years ago

Would it make sense to increase this a bit for now, and properly fix it later?

shiftinv commented 2 years ago

I believe this shouldn't be too difficult to fix, just haven't gotten around to it since it's somewhat of an edge case.