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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-odbc pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2001-02-12 02:07:20 | Re: ODBC backward versions |
Previous Message | Tom Lane | 2001-02-11 23:13:57 | Re: Recovery of PGSQL after system crash failing!!! |
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2001-02-12 01:07:02 | Re: RE: [PATCHES] Re: [HACKERS] 6.2 protocol |
Previous Message | Dave Page | 2001-02-11 19:28:22 | RE: RE: [PATCHES] Re: [HACKERS] 6.2 protocol |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2001-02-12 08:00:12 | ODBC Patch |
Previous Message | Dave Page | 2001-02-11 19:17:45 | RE: [ODBC] RE: [PATCHES] Fix for ODBC close |