#reject trying connection, not connect and disconnecting

19 messages · Page 1 of 1 (latest)

reef stream
#

I'm want to disable connection with out connecting and disconnecting
I looked about password authenticator but it connect and call disconnecting

I looked about transport's maximum client's is it right what i think?
I want to make this for max players connection count and disabling connection at some moment

I would imagine that constantly allowing connections, checking for conditions, and then disconnecting them would be pretty taxing on the server.

grim plaza
reef stream
grim plaza
#

It should work even if changed at runtime

#

But it won't kick any clients if there are too many due to shrinking the maximum size

reef stream
#

That's exactly what I expected. That's how I want that part to work, too.
But the part I'm talking about is that if you start with a value of 1 and only let one person in, and then increase the value beyond that, it doesn't let a second or third person in.
version is 4.1.6 latest

grim plaza
#

oh, that sounds like a bug then, I'll have a look

reef stream
# grim plaza oh, that sounds like a bug then, I'll have a look

After going through the code, I realized that I realized that the value of the tugboat was being passed to the server at runtime, and the subsequent value needed to be adjusted with the server's SetMaximumClients. I was using tugboat's inspector to adjust the value.

grim plaza
#

Ah gotcha, I was just about to say that it's working for me xD

#

I was using SetMaximumClients though

reef stream
#

Thank you. What do you think about adding the name as a startup setting or something so it's not confusing?

#

the value at tugboat

grim plaza
#

Do you have an example of what you mean?

#

You mean like a parameter when calling StartConnection?

reef stream
#

I modified the value of tugboat to adjust the number of clients at runtime, because the value is simply named maxclients.
However, if this header had been a ServerStartup Setting or something instead of a server, it would have been easier to know that the converted value would not be applied after startup.

#

I mean name of tugboat's value at inspector

grim plaza
#

But the field is private

reef stream
#

Moreover, this is not visible in the inspector of the server manager, so naturally I thought it was something I had to change in a transport manager like tugboat.

#

aha that make sence