[Freeciv-Dev] Re: Network code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sunday 21 January 2001 01:33, Paul Zastoupil wrote:
> On Sun, Jan 21, 2001 at 01:05:51AM +0100, Raimar Falke wrote:
> > On Sat, Jan 20, 2001 at 08:15:25AM -0800, Paul Zastoupil wrote:
> > > On Sat, Jan 20, 2001 at 03:36:00PM +0100, Raimar Falke wrote:
> > > > On Fri, Jan 19, 2001 at 11:09:54AM -0800, Paul Zastoupil wrote:
> > > > > I have a question about the cvs version. More than once, on trying
> > > > > to check the state of a game with only one person connected on
> > > > > civserver
> > > > >
> > > > > As soon as I connect I get the disconnect message of the other
> > > > > player: Game: Lost connection: anton from 212.68.243.134 (player
> > > > > Tomislav).
> > > > >
> > > > > Its appears that the other person disconnected but the code does
> > > > > realize it until another connection is made.
> > > >
> > > > My guess: when you connect the server tries to tell this all
> > > > players. If the socket write to the other players will fail the
> > > > server will notice that this players have been disconnected.
> > > >
> > > > Raimar
> > >
> > > If this is actually the case, should the server 'ping' the clients
> > > every few minutes or so (a la irc)? This is only happening with idle
> > > games.
> >
> > Since this only a guess could you please verify. Setting a variable
> > for example should also cause a write. If this is the reason you could
> > write you idea to the list. Maybe there are technical reasons against
> > it, maybe just nobody coded it yet. I don't know but list should know.
>
> Heh, sorry about that, I thought I had included the list on that last
> email.
I know vasc has long had plans for a ping packet, but just haven't gotten
around to coding it. So no technical reasons. Feel free to go ahead and make
a patch. :)
-Thue
|
|