Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive
От | Tom Lane |
---|---|
Тема | Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive |
Дата | |
Msg-id | 25517.1122795047@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive (Oliver Jowett <oliver@opencloud.com>) |
Ответы |
Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive
|
Список | pgsql-hackers |
Oliver Jowett <oliver@opencloud.com> writes: > per my linux/socket.h: >> /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ >> #define SOL_IP 0 >> /* #define SOL_ICMP 1 No-no-no! Due to Linux :-) we cannot use SOL_ICMP=1 */ >> #define SOL_TCP 6 > (I won't get into why using wire-level-protocol constants for syscall > option numbering is a bad idea.. :) [ raised eyebrow... ] You think the wire protocol numbers are more likely to change than the syscall assignments? Consider the range of systems that each change would affect. Also, that assignment is not mere BSD-ism, it's specified by the Single Unix Spec, as well as every other document I could lay my hands on today. Whoever wrote the comments in linux/socket.h is just clueless. regards, tom lane
В списке pgsql-hackers по дате отправления: