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

Constant Disconnect w/ UserInitiated = False #496

Closed
killemth opened this issue Dec 4, 2017 · 6 comments
Closed

Constant Disconnect w/ UserInitiated = False #496

killemth opened this issue Dec 4, 2017 · 6 comments
Labels

Comments

@killemth
Copy link

killemth commented Dec 4, 2017

Is anyone having constant issues where the disconnect callback is triggered, and the model states UserIntiaited = false?

{"UserInitiated":false,"JobID":{"SequentialCount":1048575,"StartTime":"2039-01-10T13:37:03","ProcessID":15,"BoxID":1023,"Value":18446744073709551615}}

Is this perhaps a transient issue with Steam today, or were there protocol changes on their end?

This is using SteamKit2 v1.7.0. Upgraded to v1.8.3, same issue.

@killemth
Copy link
Author

killemth commented Dec 4, 2017

This appears to only affect certain servers running the instance. Perhaps the IP, or hardware ID used when communicating with Steam has been banned due to too many interactions.

@voided
Copy link
Member

voided commented Dec 4, 2017 via email

@killemth
Copy link
Author

killemth commented Dec 4, 2017

This possibly seems related to #394 -- where they mention changing a hardware identifier in the HardwareUtil class -- however, there was never an official resolution.

This issue just occurred earlier today when running ~10-12 threads communicating with the Steam network in parallel.

I added some extra logging for the OnLoggedOff callback. Oddly enough, running it now seems to work -- but this is just one thread. So, perhaps the ban has expired. Will update once it happens again.

Earlier, I did notice that after many disconnects, it would then throw an exception for InvalidPassword on authentication (which wasn't actually true). Was fairly odd behavior.

@JustArchi
Copy link
Contributor

My ASF users are launching even up to a hundred of bots at the same time, and while it's not always flawless for obvious reasons, it works well most of the time, as Steam network has some upper limit of open connections from a single device (IP address), but this is more or less close to 100, not 10-12 that you mentioned.

On the other hand I've also seen people being unable to spawn more than just a few connections, so I'm not entirely sure if my theory is right. It's probably a mix of both, and you're more likely to hit your issue with non-private IP (such as shared network in school or likewise).

@killemth
Copy link
Author

killemth commented Dec 4, 2017

This is a service running on one or more AWS instances, each of which has a unique public interface.

@JustArchi
Copy link
Contributor

JustArchi commented Dec 7, 2017

It'd be best if you could verify your issue on some other machine, even your private network would do. It's very likely that it's a limit of Steam network and you're not doing anything wrong, you're just super unlucky on that particular machine with this.

Like I said - I have cases of people having no issues when launching 100+ bots on 100 different Steam accounts, all at the same time (in my ASF), but I've also seen people struggling with just a few, in the same program and same manner. Obviously code is not at fault here, since it's not SK2's decision whether it will connect or not. You could try to workaround this issue by using different IPs, different protocols and different CM servers, but it'll probably be a lottery that even if works, might not work tomorrow.

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

No branches or pull requests

4 participants