[Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

Michael Van Canneyt michael at freepascal.org
Wed Sep 2 20:09:01 CEST 2015

On Wed, 2 Sep 2015, Leonardo M. Ramé wrote:

>> Do you have a second transaction object (e.g. default transaction) ?
>> If so, that's probably it.
>> Michael.
> No, just a TSQLTransaction attached to the TPQConnection object.
> I commented all my code but the PQConnection1.Connected := True, and I noted 
> I get the "could not receive data from client: Connection reset by peer" 
> message just after the CGI program ends its execution.

Are you closing the connection properly ? i.e. not through Free, but through close.


More information about the Lazarus mailing list