Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: autoconnect with unknown user (PR#927)
Home

[Freeciv-Dev] Re: autoconnect with unknown user (PR#927)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: autoconnect with unknown user (PR#927)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 31 Aug 2001 16:05:15 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Aug 31, 2001 at 03:29:48AM -0700, Christian Knoke wrote:
> CVS 31 AUG 2001 Linux i386 Gtk+
> 
> If you use autoconnect to connect to a running game
> and set (with -n option) a username not included
> in the game, it tries to connect 100 times, but
> without the 0.5 seconds delay inbetween, i.e.
> with zero delay: 
> 
> chris@max:~ > time LANG= civclient -t trident -a -n peter
> 2: lost connection to server
> 2: last message repeated 2 times
> 2: last message repeated 2 times (total 4 repeats)
> 2: last message repeated 4 times (total 8 repeats)
> 2: last message repeated 8 times (total 16 repeats)
> 2: last message repeated 16 times (total 32 repeats)
> 2: last message repeated 32 times (total 64 repeats)
> 2: last message repeated 34 times (total 98 repeats)
> 0: Failed to contact server "localhost" at port 5555 as "peter" after 100 
> attempts
>  
> real    0m7.689s
> user    0m5.660s
> sys     0m0.280s

A patch to solve this is attached. IMHO the patch isn't elegant. This
could be done better if synchronized packet were available.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  One nuclear bomb can ruin your whole day.

Attachment: auto_connect_wait1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]