Re: Stats Collector Error 7.4beta1 and 7.4beta2

From: Kurt Roeckx <Q(at)ping(dot)be>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>, akavan(at)cox(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Stats Collector Error 7.4beta1 and 7.4beta2
Date: 2003-09-05 17:01:37
Message-ID: 20030905170137.GA17487@ping.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Sep 05, 2003 at 09:35:11AM -0400, Jan Wieck wrote:
> Redhat 7.1 says
>
> The file descriptor sockfd must refer to a socket. If the
> socket is of type SOCK_DGRAM then the serv_addr address is
> the address to which datagrams are sent by default, and
> the only address from which datagrams are received. If
>
> Looks like the test is obsolete. Any objections to remove it? Do people
> agree that it's a bugfix that can go into 7.4?

Reading SUS v2 and v3, both say:

If the initiating socket is not connection-mode, then connect()
sets the socket's peer address, but no connection is made. For
SOCK_DGRAM sockets, the peer address identifies where all datagrams
are sent on subsequent send() calls, and limits the remote sender
for subsequent recv() calls.

So it looks good to me.

I do wonder why nobody had a problem with this before however.

Kurt

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-05 17:02:07 Re: Stats Collector Error 7.4beta1 and 7.4beta2
Previous Message Robert Treat 2003-09-05 17:01:12 Re: psql \h alter scrolls of screen