[Freeciv-Dev] Re: autoconnect with unknown user (PR#927)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
auto_connect_wait1.diff
Description: Text document
|
|