Mithreas
Joined: 09 May 2008 Posts: 24
|
Posted: Sun Feb 28, 2010 6:06 Post subject: Change for the repository - nwnx_vaultster |
|
|
Guys,
I've just made the following change to my local copy of nwnx_vaultster (change is to NWNXVaultster.cpp).
Change is to reuse clients in ERROR state. The problem I hit was that I had one bad transition that sent a null server and port across the vaultster interface. A single player retried this transition enough times to make all my clients go into ERROR state, and nobody else could transition from then on.
I don't have write access, so could someone who does have write access decide whether you want the change.
Cheers,
-Mith
Code: |
else if (cmd == Get || cmd == Put) {
char* pos[2];
DWORD id;
int i;
// find a not busy client spot in the array
for (i = 0; i < maxClients; i++) {
if (clients[i].getStatus() == STATUS_OK)
break;
// Client errored out last time, but try it again.
// Other option is that errored clients stop being
// usable and we run out.
if (clients[i].getStatus() == STATUS_ERROR)
break;
}
|
_________________ Admin team, Arelith PW
Hakless world that relies heavily on the great work done by the NWNX team. |
|