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

Disconnect: [USER] overflowed reliable buffer #337

Open
miyoyo opened this issue Jul 15, 2015 · 5 comments
Open

Disconnect: [USER] overflowed reliable buffer #337

miyoyo opened this issue Jul 15, 2015 · 5 comments

Comments

@miyoyo
Copy link

miyoyo commented Jul 15, 2015

I was playing around with a way to make the server control the client entirely by the net lib, and everytime I run it, a few milliseconds later, I'm automatically kicked.

In the console, I can see that I send one request, then recieve one, then send eleven other requests while not recieving them, then I exceed the CPUQuota and get kicked

Here is my main code:
http://pastebin.com/w7vNcF6e
and the lib:
http://pastebin.com/VMW910p7

@Jazzelhawk
Copy link
Member

You're sending a request every think tick, which is why you're exceeding the tick quota. The overflow of the reliable buffer is because you're sending too many net messages. Hopefully you can fix your problem.

Slightly unrelated, on line 12 of the lib you are putting "action" into the table, but it does not exist.

Also this isn't really the place to ask for help since this is for the development of Starfall. I don't know how the owners feel about asking for help on here but in future try asking for help on the wiremod forum post for Starfall.

@miyoyo
Copy link
Author

miyoyo commented Jul 15, 2015

This isn't a call for help,as I know what's wrong, the problem is that starfall don't protect the user by limiting the network, therefore letting the game kick him.

But thanks for helping!

@Jazzelhawk
Copy link
Member

Sorry, I misunderstood. I just tried your code on a server and it exceeds the tick quota but it does not kick me. Not too sure why it is kicking you.

@Xandaros
Copy link
Member

We are limiting the amount of net messages you can send. Maybe we need to factor in the size of them, as well. That doesn't get checked at the moment...

@awilliamson
Copy link
Member

@Xandaros, Wonder if GMod has any documentation about how much is too much for net. If we knew what the cap was, then we could just limit it to that?

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

No branches or pull requests

5 participants