Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow in WindowRateLimiter.Throttle after reconnect #199

Open
airforce270 opened this issue Aug 10, 2024 · 0 comments
Open

Stack overflow in WindowRateLimiter.Throttle after reconnect #199

airforce270 opened this issue Aug 10, 2024 · 0 comments

Comments

@airforce270
Copy link

Hi,

I've run into this error a couple times - after reconnecting, when trying to make a connection, there is a stack overflow in github.com/gempir/go-twitch-irc/v4.(*WindowRateLimiter).Throttle(0x400030b290, 0x14) as it calls itself recursively over and over.

Logs and stack trace: https://gist.github.com/airforce270/93d4fba434b3fec390af2fbd855c6376

I've tried looking at the client code but am pretty unfamiliar with how it works.

If it's helpful, here's the way I'm using the client, simplified:

client.Connect()
client.Join(/* channels */)

// bot running...

// twitch requests reconnect

client.Depart(/* channels */)
client.Disconnect()

client.Connect()
client.Join(/* channels */)

/* after a couple seconds, stack overflow */

Links to my usage:

Happy to provide any other needed info.

Any help would be appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant