Received: from mail.retep.org.uk ([216.126.85.184]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0ML93068937; Mon, 22 Jan 2001 16:09:03 -0500 (EST) (envelope-from peter@retep.org.uk) Received: from heather.retep.org.uk ([193.113.240.120]) (authenticated) by mail.retep.org.uk (8.11.1/8.11.1) with ESMTP id f0ML8xk68928; Mon, 22 Jan 2001 16:08:59 -0500 (EST) (envelope-from peter@retep.org.uk) Message-Id: <5.0.2.1.0.20010122204328.009e3b60@mail.retep.org.uk> X-Sender: peter@mail.retep.org.uk X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 22 Jan 2001 20:45:55 +0000 To: Tom Lane , Cedar Cox From: Peter Mount Subject: Re: ODBC gives pq_recvbuf: unexpected EOF on client connection Cc: pgsql-interfaces@postgresql.org, pgsql-jdbc@postgresql.org In-Reply-To: <12654.980102362@sss.pgh.pa.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200101/250 X-Sequence-Number: 868 At 13:39 21/01/01 -0500, Tom Lane wrote: >Cedar Cox 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