Re: "Hanging Connection" blocks access to table (JBossMQ) - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: "Hanging Connection" blocks access to table (JBossMQ)
Date
Msg-id 16380.1160754948@sss.pgh.pa.us
Whole thread Raw
In response to Re: "Hanging Connection" blocks access to table (JBossMQ)  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-jdbc
Markus Schaber <schabi@logix-tt.com> writes:
> Tom Lane wrote:
>> I don't think it'd be a net win to add cycles to every query to check
>> the connection every so often.

> The SIGIO could set a flag variable via the interrupt handler,

SIGIO isn't portable (nowhere to be seen in Single Unix Spec), and where
it does exist, it seems to report I/O ready on *any* descriptor not only
the one you want.  That would lead to a whole lot of useless interrupts
and status-checks.

            regards, tom lane

pgsql-jdbc by date:

Previous
From: Markus Schaber
Date:
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
Next
From: Ashish Goel
Date:
Subject: IO error while sending to backend