Re: pqReadData() -- read() failed: errno=32 - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: pqReadData() -- read() failed: errno=32
Date
Msg-id 20031218144832.GA7600@dcc.uchile.cl
Whole thread Raw
In response to Re: pqReadData() -- read() failed: errno=32  ("Craig Stratton" <craig@avnet.co.uk>)
List pgsql-general
On Thu, Dec 18, 2003 at 02:30:55PM -0000, Craig Stratton wrote:

> This is running as a cgi script, not php. The backend dies afterwards.
> I think it is dbi/thread/child related, so i modified the code, but still no
> joy.
> I am fairly sure its dbi thread related still though.

Is this running within some persistent model?  PersistentPerl, mod_perl,
whatever?  It may be a problem related to this:

http://perl.apache.org/docs/general/perl_reference/perl_reference.html#my___Scoped_Variable_in_Nested_Subroutines

Even if it's not, you can try using "our" instead of "my" and see if
that fixes it.  If it does, then probably that's the problem.  If it
doesn't, maybe another of the solutions proposed there will, or maybe
not.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Vivir y dejar de vivir son soluciones imaginarias.
La existencia está en otra parte" (Andre Breton)

pgsql-general by date:

Previous
From: "Craig Stratton"
Date:
Subject: Re: pqReadData() -- read() failed: errno=32
Next
From: roboccc@t-online.de (Bogdan Chytrek)
Date:
Subject: authentication failed