Re: pqReadData() -- read() failed: errno=32

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Craig Stratton <craig(at)avnet(dot)co(dot)uk>
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pqReadData() -- read() failed: errno=32
Date: 2003-12-18 14:48:32
Message-ID: 20031218144832.GA7600@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2003-12-18 15:06:13 Re: authentication failed
Previous Message Craig Stratton 2003-12-18 14:30:55 Re: pqReadData() -- read() failed: errno=32