Re: What is happening on buildfarm member baiji? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: What is happening on buildfarm member baiji?
Date
Msg-id 20070604073709.GA21240@svr2.hagander.net
Whole thread Raw
In response to Re: What is happening on buildfarm member baiji?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: What is happening on buildfarm member baiji?  ("Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
On Sun, Jun 03, 2007 at 11:29:33PM -0400, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > Given this, I propose we simply #ifdef out the SO_REUSEADDR on win32.
> > Anybody see a problem with this?
> 
> > (A fairly good reference to read up on the options is at
> > http://msdn2.microsoft.com/en-us/library/ms740621.aspx
> 
> Hmm ... if accurate, that page says in words barely longer than one
> syllable that Microsoft entirely misunderstands the intended meaning
> of SO_REUSEADDR.

Yes, that's how I read it as well.


> It looks like SO_EXCLUSIVEADDRUSE might be a bit closer to the standard
> semantics; should we use that instead on Windoze?

I think you're reading something wrong. The way I read it,
SO_EXCLUSIVEADDRUSE gives us pretty much the same behavior we have on Unix
*without* SO_REUSEADDR. There's a paragraph specificallyi talking about the
problem of restarting a server having to wait for a timeout when using this
switch.

//Magnus



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: So, why isn't *every* buildfarm member failing ecpg right now?
Next
From: Peter Eisentraut
Date:
Subject: Running all tests by default