Author Topic: Kick headless admin after 10 minutes of inactivity  (Read 807 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Kick headless admin after 10 minutes of inactivity
« on: 3 March 2012, 21:14:09 »
Currently it is possible for players to make headless servers useless for other players by just connecting as the first user and thus becoming an admin but never playing. While I'm writing this, one headless server is blocked this way: a "newbie" player is connected to it and does not respond to the chat. not does s/he do anything for ~30 minutes now. The headless server should kick inactive admins, and warn them a minute before doing so by sounding an alarm and displaying a message such as "You have been inactive for too long and will get disconnected. Please change any setting to extend the timeout".
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TotalNoob

  • Guest
Re: Kick headless admin after 10 minutes of inactivity
« Reply #1 on: 4 March 2012, 00:25:09 »
maybe a voting poll would be a good solution too. Let's say that 2 (or more) players connect to the game and vote if the room operator should be kicked or not. On the other hand it might not work if room operator will choose a map with 2 players only :P

uncle

  • Guest
Re: Kick headless admin after 10 minutes of inactivity
« Reply #2 on: 5 March 2012, 22:04:02 »
Good idea.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Kick headless admin after 10 minutes of inactivity
« Reply #3 on: 5 March 2012, 23:19:07 »
Voting, while it would be reusable elsewhere once implemented, is way more complex, error-prone, and requires the voters to be in majority to be effective, which makes it useless in some situations as TotalNoob already pointed out. So I still think a timeout is the way to go there. Eventually voting could be added as an alternative later.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything