From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] listening addresses |
Date: | 2004-03-22 12:54:04 |
Message-ID: | 405EE1EC.4050703@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Andrew Dunstan wrote:
>
>
> Tom Lane wrote:
>
>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>
>>
>>> A small problem with it was reported to me a couple of days ago -
>>> user had firewalled off all IP6 traffic. The stats collector happily
>>> bound and connected to the socket, but all the packets fell in the
>>> bit bucket. They found it quite hard to diagnose the problem.
>>>
>>
>>
>>
>>
>>> Possible solutions that occurred to me:
>>> . an initial "hello"-"yes i'm here" exchange to validate the address
>>>
>>
>>
>> That one seems reasonable to me. Seems like it would take just a few
>> more lines of code in the loop that tries to find a working socket to
>> check that we can send a byte and receive it. You'd have to be careful
>> not to block if the socket is indeed not working ... also, is it safe to
>> assume that a byte sent with send() is *immediately* ready to recv()?
>>
>>
>>
>
Revised patch attached. I think this is about as much trouble as this
problem is worth ;-)
cheers
andrew
Attachment | Content-Type | Size |
---|---|---|
stats.patch | text/plain | 2.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2004-03-22 13:27:23 | Re: pg_autovacuum next steps |
Previous Message | Fabien COELHO | 2004-03-22 12:41:25 | optimiser questions |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-03-22 14:48:41 | Re: pstrndup() |
Previous Message | Fabien COELHO | 2004-03-22 08:40:54 | Re: Syntax error reporting (was Re: [PATCHES] syntax error position |