Ankoku / df-webfort

Web Fortress
ISC License
35 stars 10 forks source link

Disconnect Every 3 minutes #28

Closed Dragoon209 closed 9 years ago

Dragoon209 commented 9 years ago

The current Beta is ending the turn prematurely at around 3 minutes. I have tried multiple browsers, and both local and remote computers to see if it was connection related. It seemed awfully frequent, so I started timing it.

Each session lasted 3 minutes before the turn ended, and I had to refresh to play.

Is this maybe the timeout for a session or something?

Dragoon209 commented 9 years ago

The newest version is still disconnecting during play at the 3 minute mark for me. I can continue to view and watch the fort, but unable to request control until a refresh.

Dragoon209 commented 9 years ago

AdvHost and I have tracked it down that this only occurs when there are 2 or more people in the room. When it is just a single player on the server, it seems you can play indefinitely.

When there are 2 or more people in the room, the current player in control gets dropped at the 3 minute mark, as if the timer ran out. You are then unable to request control again unless you refresh the page and try again.

We were able to reproduce these results on both of our servers.

Alloyed commented 9 years ago

okay, so this is going to sound really dumb.

the server actually has two timers:

There is a bug here, that you can't refresh after you've been idled out, but otherwise it's Working As Intended(tm). That said, I don't thinking idling has been a major concern so far, and it's a subpar way to deal with idlers. Would there be any objections to just stripping and replacing it with a votekick later?

Dragoon209 commented 9 years ago

I replied to this ticket via email, but it looks like it doesn't make it back to the issues page...

I have no objection to this, but could you clarify whether you meant to strip the timeout now, and add a votekick later, or did you mean that you will strip the timeout and add votekick BOTH at a later date?

The only reason I ask is I am seeing a significant number of errant disconnects from players, right in the middle of their keystrokes. It causes a lot of confusion with new players, and they haven't seemed to have the patience to keep refreshing every 3 minutes to continue play.

...that brings another thought to mind: Is the fact that they are refreshing creating a new 10 minute timer, but they are still being governed by the original server-side 3 minute idle timer from their previous session?

Alloyed commented 9 years ago

As in I get rid of the idle timer now, and add the votekick maybe later. afaict the idle timer gets reset along with the normal timer, so I don't think that is the issue, but I haven't debugged it yet to make sure.