| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
| Cc: | Kurt Roeckx <Q(at)ping(dot)be>, Kevin Brown <kevin(at)sysexperts(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Stats Collector Error 7.4beta1 and 7.4beta2 |
| Date: | 2003-09-10 15:48:14 |
| Message-ID: | 200309101548.h8AFmEb01718@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Jan Wieck wrote:
> > For IPv6 you could do it with a memcmp on the sin6_addr part, and
> > put it inside an #ifdef HAVE_IPV6.
> >
> > If you want to write code to compare 2 addresses, please make it
> > a general function and place it in ip.c.
> >
> > Anyway, I'm happy with the current use of recv().
>
> I disagree here. The clean and secure way is still to do *some* check
> (because we carefully don't assume that all OS's behave like some
> manpages happen to agree to). The performant way is to do it with
If the OS behavior doesn't match the man page, can't we just call that
an OS bug?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2003-09-10 16:03:06 | Vote: Adding flex/bison derived files in WIN32_DEV |
| Previous Message | Zeugswetter Andreas SB SD | 2003-09-10 15:27:37 | Re: 2-phase commit |