Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: mingw status (server + lan server bugs)
Home

[Freeciv-Dev] Re: mingw status (server + lan server bugs)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Cc: "Per I. Mathisen" <per@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: mingw status (server + lan server bugs)
From: Andreas Røsdal <andrearo@xxxxxxxxxxxx>
Date: Tue, 25 Nov 2003 19:40:37 +0100 (CET)

On Tue, 25 Nov 2003, Vasco Alexandre Da Silva Costa wrote:
> On Tue, 25 Nov 2003, Andreas Røsdal wrote:
> > On Tue, 25 Nov 2003, Per I. Mathisen wrote:
> > > I compiled up newest cvs gtk2 with my old mingw32 environment, and have
> > > two considerable problems:
> > >   - the server does not accept any input, all input seems to be buffered
> > > and sent to the command shell after the app exits; clients cannot connect
> > > (do not finish connection sequence)
> > >   - pressing the 'LAN servers' tab then 'refresh' button crashes the
> > > client - it freezes and must be closed from windows; I can't get gdb to
> > > resume after this happen so no backtrace
> > >
> > > On the bright side, the client seems much faster now.
> >
> > I think this is because the socket for UDP multicast is blocking,
> > even though it's set to be nonblocking.
> >
> > This can be fixed by using select(), like it's done several
> > places in /server/sernet.c.  I can make a patch for this.
>
> UDP is connectionless. Make sure you aren't getting bogged down doing
> a DNS name lookup.

Ok. Here's the patch. The socket is not blocking any more,
and if DNS lookup fail, then the IP is shown instead.

 Andreas Røsdal

Attachment: lan_cleanup_1.diff
Description: Text document


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