Skip site navigation (1) Skip section navigation (2)

Re: [ODBC] RE: [PATCHES] Fix for ODBC close

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [ODBC] RE: [PATCHES] Fix for ODBC close
Date: 2001-02-12 00:59:16
Message-ID: 3A873564.B58D047D@tpf.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-odbcpgsql-patches
Bruce Momjian wrote:
> 
> > > -----Original Message-----
> > > From: Bruce Momjian
> > >
> > > OK, I have a pretty good guess about the cause of the ODBC shutdown
> > > failure message in the server logs.  Sending 'X' is still causing the
> > > error message.
> > >
> > > The error you are seeing is from the backend libpq code, the area that
> > > communicates with clients.
> > >
> > > while ODBC closes with:
> > >
> > >             SOCK_put_char(self, 'X');
> > >             SOCK_flush_output(self);
> > >
> >
> > Probably you have to put above code before calling
> > shutdown() not after.  shutdown(sock, 2) disables
> > both sends and receives on the socket.
> 
> Thanks.  I was so focused on close() I never noticed the shutdown().
> Can someone please test now?
> 

I had already tested it in win32 environment before
I posted my previous mail.

Regards,
Hiroshi Inoue

In response to

pgsql-hackers by date

Next:From: Hiroshi InoueDate: 2001-02-12 02:07:20
Subject: Re: ODBC backward versions
Previous:From: Tom LaneDate: 2001-02-11 23:13:57
Subject: Re: Recovery of PGSQL after system crash failing!!!

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2001-02-12 01:07:02
Subject: Re: RE: [PATCHES] Re: [HACKERS] 6.2 protocol
Previous:From: Dave PageDate: 2001-02-11 19:28:22
Subject: RE: RE: [PATCHES] Re: [HACKERS] 6.2 protocol

pgsql-patches by date

Next:From: Dave PageDate: 2001-02-12 08:00:12
Subject: ODBC Patch
Previous:From: Dave PageDate: 2001-02-11 19:17:45
Subject: RE: [ODBC] RE: [PATCHES] Fix for ODBC close

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group