Re: [HACKERS] keepalives on MacOS X

2010-07-06 Thread Robert Haas
On Fri, Jul 2, 2010 at 5:44 PM, Robert Haas wrote: > On Tue, Jun 29, 2010 at 10:53 PM, Fujii Masao wrote: >> On Tue, Jun 29, 2010 at 11:28 PM, Robert Haas wrote: >>> On Tue, Jun 29, 2010 at 12:42 AM, Tom Lane wrote: Yeah, a bit of rooting around in the Darwin sources shows that this v

Re: [HACKERS] keepalives on MacOS X

2010-07-02 Thread Robert Haas
On Tue, Jun 29, 2010 at 10:53 PM, Fujii Masao wrote: > On Tue, Jun 29, 2010 at 11:28 PM, Robert Haas wrote: >> On Tue, Jun 29, 2010 at 12:42 AM, Tom Lane wrote: >>> Yeah, a bit of rooting around in the Darwin sources shows that this >>> value is used as a per-connection override for tcp_keepidle

Re: [HACKERS] keepalives on MacOS X

2010-06-29 Thread Fujii Masao
On Tue, Jun 29, 2010 at 11:28 PM, Robert Haas wrote: > On Tue, Jun 29, 2010 at 12:42 AM, Tom Lane wrote: >> Yeah, a bit of rooting around in the Darwin sources shows that this >> value is used as a per-connection override for tcp_keepidle.  So it >> is a synonym.  Not sure if it's worth supportin

Re: [HACKERS] keepalives on MacOS X

2010-06-29 Thread Robert Haas
On Tue, Jun 29, 2010 at 12:42 AM, Tom Lane wrote: > Yeah, a bit of rooting around in the Darwin sources shows that this > value is used as a per-connection override for tcp_keepidle.  So it > is a synonym.  Not sure if it's worth supporting when the other value > can't be set too.  Maybe it'd be m

Re: [HACKERS] keepalives on MacOS X

2010-06-28 Thread Tom Lane
Robert Haas writes: > It looks like the recent keepalives patch won't support MacOS X, > because MacOS X does not have the TCP_KEEPIDLE, TCP_KEEPINTVL, and > TCP_KEEPCNT socket parameters. It does have this: It looks to me like there's support for setting KEEPIDLE and KEEPINTVL via sysctl, but o

Re: [HACKERS] keepalives on MacOS X

2010-06-28 Thread Fujii Masao
On Tue, Jun 29, 2010 at 4:07 AM, Robert Haas wrote: > It looks like the recent keepalives patch won't support MacOS X, > because MacOS X does not have the TCP_KEEPIDLE, TCP_KEEPINTVL, and > TCP_KEEPCNT socket parameters.  It does have this: > > #define TCP_KEEPALIVE           0x10    /* idle time

[HACKERS] keepalives on MacOS X

2010-06-28 Thread Robert Haas
It looks like the recent keepalives patch won't support MacOS X, because MacOS X does not have the TCP_KEEPIDLE, TCP_KEEPINTVL, and TCP_KEEPCNT socket parameters. It does have this: #define TCP_KEEPALIVE 0x10/* idle time used when SO_KEEPALIVE is enabled */ Should we try to support