From: Peter Mount <peter@retep.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Cedar Cox <cedarc@visionforisrael.com>
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ODBC gives pq_recvbuf: unexpected EOF on client connection
Date: Mon, 22 Jan 2001 20:45:55 +0000
Message-ID: <5.0.2.1.0.20010122204328.009e3b60@mail.retep.org.uk> (raw)
In-Reply-To: <12654.980102362@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0101211244390.13405-100000@nanu.visionforisrael.com>
<Pine.LNX.4.21.0101211244390.13405-100000@nanu.visionforisrael.com>
At 13:39 21/01/01 -0500, Tom Lane wrote:
>Cedar Cox <cedarc@visionforisrael.com> writes:
> > I'm using ODBC/MS Access and every time my client shuts down
> > I get the log message:
> > pq_recvbuf: unexpected EOF on client connection
> > Is there something I'm doing wrong here?
>
>Not you, the ODBC driver --- it's just unceremoniously closing the
>socket connection without being polite enough to send the disconnect
>message (a single 'X', I think) first.
>
>Somebody ought to fix that, but it's not a real high priority.
>There's no bad side-effects other than cluttering the postmaster log.
>
> > (yes I did copy the JDBC post.. ;)
>
>I haven't looked at the JDBC code, but evidently it's equally impolite.
This was fixed in 6.5.3 as long as the client doesn't kill the JVM
prematurely. As long as client code calls the Connection's close() method
then the backend will get the X message. Problem is most people
conveniently forget to put close() in their code.
Peter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: peter@retep.org.uk, tgl@sss.pgh.pa.us, cedarc@visionforisrael.com, pgsql-jdbc@postgresql.org
Subject: Re: ODBC gives pq_recvbuf: unexpected EOF on client connection
In-Reply-To: <5.0.2.1.0.20010122204328.009e3b60@mail.retep.org.uk>
References: <Pine.LNX.4.21.0101211244390.13405-100000@nanu.visionforisrael.com> <5.0.2.1.0.20010122204328.009e3b60@mail.retep.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox