[FIXED] Banned player remains online

Fixed bugs, solved problems, and old reports.
Locked
User avatar
KingCrab
Offline
Posts: 1058
Joined: May 24th, 2011, 4:42 pm

[FIXED] Banned player remains online

Post by KingCrab »

Image

Apparently after a /banall, this guy remained on the server even though he was banned. He had the red asterisk as well. Not sure if its a bug or just a random glitch.
<+FCB1> 05+Pemalite: all the fcraft chicks reject me except element

13:04 + FCB2 │ +Pemalite: craaaaab
13:04 + FCB1 │ +Pemalite: no
13:04 + FCB1 │ +Pemalite: ill give yout the best loving ou ever ad crab

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Banned player remains online

Post by fragmer »

I'll check the logs.

EDIT:

Code: Select all

00:54:21 > Player Hicks31 connected from 66.10.94.35.
00:54:21 > Player Hicks31 joined world main.
00:54:21 > Player.JoinWorldNow: Sending compressed map (261277 bytes) to Hicks31.
00:54:23 > KingCrab72: /banall guthix1234 Griefing IP
00:54:23 > IPBanList.Save: Saving IP ban list (4196 records).
00:54:23 > KingCrab72 banned 66.10.94.35 (BanAll guthix1234). Reason: Griefing IP
00:54:23 > KingCrab72 banned bigkeat31 (BanAll guthix1234). Reason: Griefing IP
00:54:23 > KingCrab72 banned guthix1234 (BanAll guthix1234). Reason: Griefing IP
00:54:23 > KingCrab72 banned Hicks31 (BanAll guthix1234). Reason: Griefing IP
00:54:23 > guthix1234 left the server (BanAll).
00:54:29 > Player Hicks31* logged in from an IP shared by banned players: bigkeat31, guthix1234, Hicks31
Looks like Hicks31 was fully connected and loading the main map while he was being banned. That's a fairly rare coincidence.

AliceRed
Offline
Posts: 3
Joined: February 22nd, 2012, 2:33 pm

Re: Banned player remains online

Post by AliceRed »

I have experienced this issue numerous times in the same situation. Just kicking them is the only alternative, they won't be able to log in afterwards, normally.

BobKare
Offline
Posts: 279
Joined: May 26th, 2011, 2:15 pm

Re: Banned player remains online

Post by BobKare »

AliceRed wrote:I have experienced this issue numerous times in the same situation. Just kicking them is the only alternative, they won't be able to log in afterwards, normally.
Same. This has happened to me several times. It's not often, but it should be something fragmer should look into.

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: Banned player remains online

Post by Intertoothh »

BobKare wrote: It's not often, but it should be something fragmer should look into.
He did.
Fragmer wrote:Looks like Hicks31 was fully connected and loading the main map while he was being banned. That's a fairly rare coincidence.
And a simple kick will solve this.
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Banned player remains online

Post by fragmer »

<technical details> I check whether the player is banned before "accepting" them into the server. There is a window of several milliseconds between the ban check and the acceptance in which the ban has to take place. Basically, a threading race condition. I'll see if I can move the ban-checking code into the thread-synchronized part of the code that deals with acceptance.

TLDR: I'll fix it.

Locked