Re: libpgtcl: pq_recvbuf: unexpected EOF on client connection - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: libpgtcl: pq_recvbuf: unexpected EOF on client connection
Date
Msg-id 23187.1030982048@sss.pgh.pa.us
Whole thread Raw
In response to libpgtcl: pq_recvbuf: unexpected EOF on client connection  (g.hintermayer@inode.at (Gerhard Hintermayer))
List pgsql-interfaces
g.hintermayer@inode.at (Gerhard Hintermayer) writes:
> I constantly keep getting this message in the log files when
> disconnection with pg_disconnect (TCL-interface)

Yeah, I see it too --- though everything's fine if you just exit the
client program without an explicit pg_disconnect.  I think the problem
is that pg_disconnect shouldn't be unregistering the notifier_channel;
I bet TCL thinks it should close the socket when we do that.  Then
the later PQfinish call will be unable to send the normal termination
message to the backend.  Probably the best fix is to move the unregister
call into PgDelConnectionId(), after we do PQfinish.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Teo"
Date:
Subject: Re: pgaccess 0.98.8 beta 1 - the show starts
Next
From: Gerhard Hintermayer
Date:
Subject: Re: libpgtcl: pq_recvbuf: unexpected EOF on client connection