Re: Occupied port warning

From: Abhijit Menon-Sen <ams(at)oryx(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: andrew(at)dunslane(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Occupied port warning
Date: 2005-06-28 13:40:42
Message-ID: 20050628134042.GA27277@penne.toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 2005-06-28 15:14:29 +0200, peter_e(at)gmx(dot)net wrote:
>
> I recall that it had something to do with IPv6, but I'm not sure.

Under Linux, if you bind to AF_INET6/::0, a subsequent bind to AF_INET/0
will fail, but the IPv4 address is also bound by the first call, and the
program will accept IPv4 connections anyway (BSD behaves differently).

Maybe that had something to do with it? I remember I had to add code to
my program to allow that second bind to fail without complaint, and now
my code also exits only if it can't bind anything at all.

(For what it's worth, I don't think this behaviour is such a big deal.)

-- ams

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-28 13:51:20 Re: Implementing SQL/PSM for PG 8.2 - debugger
Previous Message Pavel Stehule 2005-06-28 13:19:12 Re: Implementing SQL/PSM for PG 8.2 - debugger