Author Topic: For some ungodly reason, truce's torque webserver refuses to delete clients...  (Read 581 times)

...after disconnect.

I end up with at least 3k webclient tcpobjects, which are generated on connect, because of the auto-refresher I have on my page. I'm concerned this will cause connection issues somehow (see: that rogue mod on kalphiters servers that forgeted up connections), so I attempted to do this:

webClient::onDisconnect(%this)
{
%this.delete();
}


but unfortunately, that doesn't work.


Truces webserver - http://pastebin.com/9q06sz62


This probably won't actually cause a problem, but it is irritating to have this -

the server has been up for only five hours
1000 loving tcpobjects in FIVE HOURS? That's 200 an hour! 3.3 a minute! forget!
The server was up for a few days before I took it down for unrelated reasons, I'm sure it had way over 5000 tcpobjects.
« Last Edit: June 10, 2012, 02:27:24 AM by Lugnut1206 »

Not sure if there is a timeout or not, but you should add one.

Not sure if there is a timeout or not, but you should add one.
There is, but all it does is call webClient.disconnect();
It doesn't actually delete said client, which is never reused.

edit: modified this:

function Webclient::timeout(%this)
{
   %this.server.debug("Client " @ %this @ " timed out after some time.");
   %this.disconnect();
}

to this
function Webclient::timeout(%this)
{
   %this.server.debug("Client " @ %this @ " timed out after some time.");
   %this.disconnect();
   %this.delete();
}


Let's see if this works.


Edit: negative, any other suggestions?
« Last Edit: June 10, 2012, 02:31:41 AM by Lugnut1206 »

This is the VCE Client correct?


Nothing is wrong on that code(I think). The only problem is you used %this instead of %client.

Nothing is wrong on that code(I think). The only problem is you used %this instead of %client.
You have no idea what you're talking about.

ALSO.
Why did you bump this.

Nothing is wrong on that code(I think). The only problem is you used %this instead of %client.
Omg
*Laughs so hard that the chair falls backwards*

Nothing is wrong on that code(I think). The only problem is you used %this instead of %client.
shoo, before your ignorance shows through more.

variable names don't matter.

i'm still having this problem btw

There is no "timeout" function

And if the user suddenly drops, (like pressing quit or crashing), the tcp packet won't disconnect, so you have so occaisonally send some kind of ping packet.