[Freeciv-Dev] Re: mingw status (server + lan server bugs)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
lan_cleanup_1.diff
Description: Text document
- [Freeciv-Dev] mingw status (server + lan server bugs), Per I. Mathisen, 2003/11/25
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Andreas Røsdal, 2003/11/25
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Per I. Mathisen, 2003/11/25
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Vasco Alexandre Da Silva Costa, 2003/11/25
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Per I. Mathisen, 2003/11/25
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Andreas Røsdal, 2003/11/26
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Per I. Mathisen, 2003/11/26
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Andreas Røsdal, 2003/11/26
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Per I. Mathisen, 2003/11/27
- [Freeciv-Dev] Re: mingw status (server + lan server bugs), Andreas Røsdal, 2003/11/27
|
|